Moved the call to exit() outside the else as otherwise wofi won't exit when printing the command
This commit is contained in:
parent
c607a06210
commit
0decee5d78
@ -427,8 +427,8 @@ void wofi_drun_exec(const gchar* cmd) {
|
|||||||
} else {
|
} else {
|
||||||
set_dri_prime(info);
|
set_dri_prime(info);
|
||||||
g_desktop_app_info_launch_action(info, action, NULL);
|
g_desktop_app_info_launch_action(info, action, NULL);
|
||||||
exit(0);
|
|
||||||
}
|
}
|
||||||
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s cannot be executed\n", cmd);
|
fprintf(stderr, "%s cannot be executed\n", cmd);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user