From 4b506e865a6997fd24b39335a96cfeea7d14c209 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Dec 2024 16:00:52 +0100 Subject: Make systemctl work in flatpak --- include/Process.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/Process.hpp b/include/Process.hpp index 6fd8c31..9662126 100644 --- a/include/Process.hpp +++ b/include/Process.hpp @@ -17,5 +17,9 @@ namespace gsr { pid_t exec_program(const char **args, int *read_fd); // Arguments ending with NULL. Returns the exit status of the program or -1 on error int exec_program_get_stdout(const char **args, std::string &result); + // Arguments ending with NULL. Returns the exit status of the program or -1 on error. + // This works the same as |exec_program_get_stdout|, except on flatpak where this runs the program on the + // host machine with flatpak-spawn --host + int exec_program_on_host_get_stdout(const char **args, std::string &result); pid_t pidof(const char *process_name); } \ No newline at end of file -- cgit v1.2.3