Merge pull request #107113 from mihe/macos-open-in-program

Add `OS::open_with_program` for opening files/directories with a specific program on macOS
This commit is contained in:
Rémi Verschelde 2025-06-05 13:13:49 +02:00
commit bb9d6d0d02
No known key found for this signature in database
GPG key ID: C3336907360768E1
7 changed files with 83 additions and 3 deletions

View file

@ -191,6 +191,7 @@ public:
virtual Dictionary execute_with_pipe(const String &p_path, const List<String> &p_arguments, bool p_blocking = true) { return Dictionary(); }
virtual Error create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id = nullptr, bool p_open_console = false) = 0;
virtual Error create_instance(const List<String> &p_arguments, ProcessID *r_child_id = nullptr) { return create_process(get_executable_path(), p_arguments, r_child_id); }
virtual Error open_with_program(const String &p_program_path, const List<String> &p_paths) { return create_process(p_program_path, p_paths); }
virtual Error kill(const ProcessID &p_pid) = 0;
virtual int get_process_id() const;
virtual bool is_process_running(const ProcessID &p_pid) const = 0;