summaryrefslogtreecommitdiffstats
path: root/source/rofi.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-01-07 17:19:33 +0100
committerDave Davenport <qball@gmpclient.org>2019-01-07 17:21:31 +0100
commitf42cffe96201b1e5886e5069856a02eeb3bf5733 (patch)
treed25b6bcf356b08d11b5a0fa46866e62c183dce30 /source/rofi.c
parent9465d189f730a6a6ada3cb7bdc0660607b645fb6 (diff)
Return EX_DATAERR when fails to parse theme.
This way a script can check if there was an error, otherwise you can wind up in a loop.
Diffstat (limited to 'source/rofi.c')
-rw-r--r--source/rofi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 3d125c5e..4bea8012 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -41,6 +41,7 @@
#include <gmodule.h>
#include <xcb/xcb.h>
#include <sys/types.h>
+#include <sysexits.h>
#include <glib-unix.h>
@@ -675,6 +676,7 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
}
rofi_view_error_dialog ( emesg->str, ERROR_MSG_MARKUP );
g_string_free ( emesg, TRUE );
+ rofi_set_return_code ( EX_DATAERR );
return G_SOURCE_REMOVE;
}
// Dmenu mode.