From 0decee5d783f58c277180c7590275a35268c5fd8 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 12 Nov 2020 18:30:25 -0800 Subject: [PATCH] Moved the call to exit() outside the else as otherwise wofi won't exit when printing the command --- modes/drun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modes/drun.c b/modes/drun.c index fa76318..066cf73 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -427,8 +427,8 @@ void wofi_drun_exec(const gchar* cmd) { } else { set_dri_prime(info); g_desktop_app_info_launch_action(info, action, NULL); - exit(0); } + exit(0); } else { fprintf(stderr, "%s cannot be executed\n", cmd); exit(1);