From 9549dfdd3e0ed57b2bf2fe0fc44869e3facdf681 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 13 Mar 2016 20:11:39 +0100 Subject: [PATCH] Terminate mainloop after error message when trying to start it in daemon mode. --- source/rofi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/rofi.c b/source/rofi.c index 1c6906db..0acb1c94 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -595,6 +595,7 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data ) // Daemon mode fprintf ( stderr, "Rofi daemon mode is now removed.\n" ); fprintf ( stderr, "Please use your window manager binding functionality or xbindkeys to replace it.\n" ); + g_main_loop_quit ( main_loop ); } return G_SOURCE_REMOVE;