diff options
author | Dave Davenport <qball@blame.services> | 2021-08-17 11:05:03 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2021-08-17 11:05:03 +0200 |
commit | 47f26ca2f144db9d46c201b004317d4a56aff2ed (patch) | |
tree | 6963ece7717a1d59a932aaa2c57b717fb98a27ec /source/helper.c | |
parent | 4bd370dd1ae08b0ecff8961880f0783198e37b50 (diff) |
[IconFetcher] Look for images in theme directories.
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c index 771522a9..d0b65934 100644 --- a/source/helper.c +++ b/source/helper.c @@ -1054,7 +1054,7 @@ gboolean helper_execute_command ( const char *wd, const char *cmd, gboolean run_ return helper_execute ( wd, args, "", cmd, context ); } -char *helper_get_theme_path ( const char *file ) +char *helper_get_theme_path ( const char *file, const char *ext ) { char *filename = rofi_expand_path ( file ); g_debug ( "Opening theme, testing: %s\n", filename ); @@ -1063,11 +1063,11 @@ char *helper_get_theme_path ( const char *file ) } g_free ( filename ); - if ( g_str_has_suffix ( file, ".rasi" ) ) { + if ( g_str_has_suffix ( file, ext ) ) { filename = g_strdup ( file ); } else { - filename = g_strconcat ( file, ".rasi", NULL ); + filename = g_strconcat ( file, ext, NULL ); } // Check config's themes directory. const char *cpath = g_get_user_config_dir (); |