aboutsummaryrefslogtreecommitdiff
path: root/src/gui/GlobalSettingsPage.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-29 16:00:52 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-29 16:00:52 +0100
commit4b506e865a6997fd24b39335a96cfeea7d14c209 (patch)
tree1f0735e62e678e913ec40d47a69938957cd3ce61 /src/gui/GlobalSettingsPage.cpp
parent78f44a9486bbc682ea723bb76a24091421c41d78 (diff)
Make systemctl work in flatpak
Diffstat (limited to 'src/gui/GlobalSettingsPage.cpp')
-rw-r--r--src/gui/GlobalSettingsPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GlobalSettingsPage.cpp b/src/gui/GlobalSettingsPage.cpp
index 9b927f0..7e79c16 100644
--- a/src/gui/GlobalSettingsPage.cpp
+++ b/src/gui/GlobalSettingsPage.cpp
@@ -77,7 +77,7 @@ namespace gsr {
const char *args[] = { "systemctl", enable ? "enable" : "disable", "--user", "gpu-screen-recorder-ui", nullptr };
std::string stdout_str;
- const int exit_status = exec_program_get_stdout(args, stdout_str);
+ const int exit_status = exec_program_on_host_get_stdout(args, stdout_str);
if(on_startup_changed)
on_startup_changed(enable, exit_status);
};
@@ -109,7 +109,7 @@ namespace gsr {
const char *args[] = { "systemctl", "is-enabled", "--quiet", "--user", "gpu-screen-recorder-ui", nullptr };
std::string stdout_str;
- const int exit_status = exec_program_get_stdout(args, stdout_str);
+ const int exit_status = exec_program_on_host_get_stdout(args, stdout_str);
startup_radio_button_ptr->set_selected_item(exit_status == 0 ? "start_on_system_startup" : "dont_start_on_system_startup", false, false);
}