From 8375fbb5136c4aca009afa005d129ba580bf2cdc Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 20 Jun 2017 09:16:12 +0200 Subject: Support a config.rasi configuration file in the new format --- lexer/theme-lexer.l | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lexer/theme-lexer.l') diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 19790d93..bf53b0f4 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -307,7 +307,9 @@ if ( queue == NULL ){ yytext[yyleng-1] = '\0'; ParseObject *top = g_queue_peek_head ( file_queue ); g_assert ( top != NULL ); - char *filename = rofi_theme_parse_prepare_file ( &yytext[1], top->filename ); + char *file2 = helper_get_theme_path ( &yytext[1] ); + char *filename = rofi_theme_parse_prepare_file ( file2, top->filename ); + g_free ( file2 ); if ( g_list_find_custom ( imported_files, filename, (GCompareFunc)g_strcmp0 ) != NULL ) { g_debug ( "Skipping file: '%s' already parsed.", filename ); } else { -- cgit v1.2.3