diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-29 18:56:42 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-29 18:56:42 +0100 |
commit | 5ab4c7b7525d3cf36777fd1dd77813dc8879dbfc (patch) | |
tree | 3761aadee6e89975443df50171f5fdcd343b8340 /src/main.cpp | |
parent | 4b506e865a6997fd24b39335a96cfeea7d14c209 (diff) |
Use flatpak specific path for gsr-global-hotkeys
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index ae08bb8..9c2802b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -177,12 +177,13 @@ int main(int argc, char **argv) { if(argc == 1) { launch_action = LaunchAction::LAUNCH_HIDE; } else if(argc == 2) { - if(strcmp(argv[1], "launch-show") == 0) { + const char *launch_action_opt = argv[1]; + if(strcmp(launch_action_opt, "launch-show") == 0) { launch_action = LaunchAction::LAUNCH_SHOW; - } else if(strcmp(argv[1], "launch-hide") == 0) { + } else if(strcmp(launch_action_opt, "launch-hide") == 0) { launch_action = LaunchAction::LAUNCH_HIDE; } else { - printf("error: invalid action \"%s\", expected \"launch-show\" or \"launch-hide\".\n", argv[1]); + printf("error: invalid action \"%s\", expected \"launch-show\" or \"launch-hide\".\n", launch_action_opt); usage(); } } else { |