aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-29 19:16:28 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-29 19:16:28 +0100
commit663307086579a87e6f11a7a2d795be94e8d73877 (patch)
tree7b7aee803b70551687097dba8bdc118bf36f7c2c
parentf65f2d30fdad1a960ba1028fefbb51807532688e (diff)
Error checking for setupHEADmaster
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 23b6104..9b28b53 100644
--- a/main.c
+++ b/main.c
@@ -150,7 +150,8 @@ static int setup_gsr_ui(const char *user_homepath) {
success &= (copy_file_atomic_set_capabilities(GSR_GLOBAL_HOTKEYS_FILEPATH, gsr_global_hotkeys_local_filepath, (const cap_value_t[]){ CAP_SETUID }, 1) == 1);
return success ? 0 : 1;
} else {
- create_local_kms_server_proxy_directory(user_homepath);
+ if(create_local_kms_server_proxy_directory(user_homepath) != 1)
+ return 1;
const char *args[] = { "pkexec", self_path, "setup-gsr-ui", user_homepath, NULL };
return execvp(args[0], (char *const*)args);