diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-20 09:16:12 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-20 17:56:27 +0200 |
commit | 8375fbb5136c4aca009afa005d129ba580bf2cdc (patch) | |
tree | 9442ff74a3659f169f105899fbf0c657d6c4df3d /lexer | |
parent | dc2d85cf9f8d3e41b381be5f6da480d9c250d8b7 (diff) |
Support a config.rasi configuration file in the new format
Diffstat (limited to 'lexer')
-rw-r--r-- | lexer/theme-lexer.l | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |