aboutsummaryrefslogtreecommitdiff
path: root/src/skhd.c
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2023-05-27 20:02:07 +0200
committerkoekeishiya <aasvi93@hotmail.com>2023-05-27 20:02:07 +0200
commit8001c9ad537d43eb587c5a325296bdaebd565708 (patch)
tree5c50636e6e92ec5102ca1aae3ab71dd2845f3675 /src/skhd.c
parentb06f2332e7eb08e2132d36462af759ed5da94ab4 (diff)
downloadskhd-8001c9ad537d43eb587c5a325296bdaebd565708.tar.gz
skhd-8001c9ad537d43eb587c5a325296bdaebd565708.zip
improve launchd integration
Diffstat (limited to '')
-rw-r--r--src/skhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skhd.c b/src/skhd.c
index 6da4456..b8f5c2f 100644
--- a/src/skhd.c
+++ b/src/skhd.c
@@ -459,7 +459,7 @@ static GLOBAL_CONNECTION_CALLBACK(connection_handler)
int main(int argc, char **argv)
{
if (getuid() == 0 || geteuid() == 0) {
- error("skhd: running as root is not allowed! abort..\n");
+ require("skhd: running as root is not allowed! abort..\n");
}
if (parse_arguments(argc, argv)) {
@@ -475,7 +475,7 @@ int main(int argc, char **argv)
}
if (!check_privileges()) {
- error("skhd: must be run with accessibility access! abort..\n");
+ require("skhd: must be run with accessibility access! abort..\n");
}
if (!initialize_keycode_map()) {