diff --git a/configure.ac b/configure.ac index d404b48b..7ab3d273 100644 --- a/configure.ac +++ b/configure.ac @@ -109,6 +109,8 @@ AC_CHECK_HEADER([math.h],, AC_MSG_ERROR("Could not find math.h header file")) AC_SEARCH_LIBS([floor],[m],, AC_MSG_ERROR("Could not find floor in math library")) AC_SEARCH_LIBS([ceil], [m],, AC_MSG_ERROR("Could not find ceil in math library")) +AC_CHECK_HEADER([sysexits.h],, AC_MSG_ERROR("Could not find the sysexists.h header file")) + dnl --------------------------------------------------------------------- dnl Check dependencies dnl --------------------------------------------------------------------- diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index eec7b0a8..f49e8d59 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -149,7 +149,10 @@ Current theme: ${CUR}""" if [ ${RTR} = 10 ] then return 0; - elif [ ${RTR} = 1 ] + elif [ ${RTR} = 1 ] + then + return 1; + elif [ ${RTR} = 65 ] then return 1; fi 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 #include #include +#include #include @@ -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.