diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 96407443..0763b22e 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -433,7 +433,7 @@ if ( queue == NULL ) { } else { char *str = g_markup_printf_escaped ( "Failed to open theme: %s\nError: %s", filename, strerror ( errno ) ); - rofi_add_error_message ( g_string_new ( str ) ); + rofi_add_warning_message ( g_string_new ( str ) ); g_free ( str ); g_free(filename); } diff --git a/source/rofi.c b/source/rofi.c index a7edb5cb..fd318ad2 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -36,12 +36,12 @@ #include #include #include +#include #include #include #include #include #include -#include #include @@ -1017,6 +1017,11 @@ int main(int argc, char *argv[]) { // This might clear existing errors. config_parse_cmd_options(); } + + if (rofi_theme == NULL || rofi_theme->num_widgets == 0) { + g_warning("Failed to load theme. Try to load default: "); + rofi_theme_parse_string("@theme \"default\""); + } TICK_N("Load cmd config "); // Get the path to the cache dir.