diff options
Diffstat (limited to 'src/hotkey.c')
-rw-r--r-- | src/hotkey.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/hotkey.c b/src/hotkey.c index cdf8de1..9e99064 100644 --- a/src/hotkey.c +++ b/src/hotkey.c @@ -13,15 +13,13 @@ fork_and_exec(char *command) { local_persist char arg[] = "-c"; local_persist char *shell = NULL; - if(!shell) - { + if(!shell) { char *env_shell = getenv("SHELL"); shell = env_shell ? env_shell : "/bin/bash"; } int cpid = fork(); - if(cpid == 0) - { + if(cpid == 0) { char *exec[] = { shell, arg, command, NULL}; int status_code = execvp(exec[0], exec); exit(status_code); |