diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-29 19:16:28 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-29 19:16:28 +0100 |
commit | 663307086579a87e6f11a7a2d795be94e8d73877 (patch) | |
tree | 7b7aee803b70551687097dba8bdc118bf36f7c2c | |
parent | f65f2d30fdad1a960ba1028fefbb51807532688e (diff) |
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |