aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8a28624..5eef1f4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2740,7 +2740,7 @@ static void video_codec_set_sensitive(GtkCellLayout *cell_layout, GtkCellRendere
}
static void launch_gsr_ui(bool launched_by_daemon) {
- const char *args[] = { "gsr-ui", show_ui ? "launch-daemon" : "launch-hide", nullptr };
+ const char *args[] = { "gsr-ui", launched_by_daemon ? "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.