diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-01-07 17:19:33 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-01-07 17:21:31 +0100 |
commit | f42cffe96201b1e5886e5069856a02eeb3bf5733 (patch) | |
tree | d25b6bcf356b08d11b5a0fa46866e62c183dce30 /source/rofi.c | |
parent | 9465d189f730a6a6ada3cb7bdc0660607b645fb6 (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.c | 2 |
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. |