1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

FileManager: Use a Core::File for the FileOperation pipes

Instead of popen()/pclose(), we now open the pipes manually and wrap
them in a friendly Core::File object.
This commit is contained in:
Andreas Kling 2021-04-13 09:58:09 +02:00
parent f54e290548
commit a5420ee3d0
3 changed files with 46 additions and 14 deletions

View file

@ -37,7 +37,7 @@ public:
virtual ~FileOperationProgressWidget() override;
private:
explicit FileOperationProgressWidget(FILE* helper_pipe);
explicit FileOperationProgressWidget(NonnullRefPtr<Core::File> helper_pipe);
void did_finish();
void did_error();
@ -46,6 +46,6 @@ private:
void close_pipe();
RefPtr<Core::Notifier> m_notifier;
FILE* m_helper_pipe { nullptr };
RefPtr<Core::File> m_helper_pipe;
};
}