aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-05-10 18:24:38 +0200
committerdec05eba <dec05eba@protonmail.com>2025-05-10 18:24:38 +0200
commit247bec330977967dd944dda37aefab110d0ba72a (patch)
tree9e72cee635fae4c1eb9e64d7bd572010b0cb3892
parent8500e3cf5b0b0ceb29520b49d71336c6430261b4 (diff)
Launch daemon
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5718de3..8a28624 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2739,8 +2739,8 @@ static void video_codec_set_sensitive(GtkCellLayout *cell_layout, GtkCellRendere
g_free(id);
}
-static void launch_gsr_ui(bool show_ui) {
- const char *args[] = { "gsr-ui", show_ui ? "launch-show" : "launch-hide", nullptr };
+static void launch_gsr_ui(bool launched_by_daemon) {
+ const char *args[] = { "gsr-ui", show_ui ? "launch-daemon" : "launch-hide", nullptr };
execvp(args[0], (char* const*)args);
// TODO: This is incorrect because window wont be defined here if this is called from startup.
// This is fine for not because this is only called inside the flatpak where gsr-ui is always available.