diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/xfdesktop-file-utils.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -3,6 +3,8 @@ Xfdesktop 4.x.y * Use Name field as display name of desktop files (bug #6896). * Handle volume changes in a timeout (bug #7025). + * Support absolute icon paths in desktop files (bug #7160). + Patch by xaizek@gmail.com. Xfdesktop 4.8.0 diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c index b3a34861..c3c3e3b2 100644 --- a/src/xfdesktop-file-utils.c +++ b/src/xfdesktop-file-utils.c @@ -499,6 +499,8 @@ xfdesktop_file_utils_get_icon(const gchar *custom_icon_name, if(custom_icon_name) { pix_theme = gtk_icon_theme_load_icon(itheme, custom_icon_name, size, ITHEME_FLAGS, NULL); + if(!pix_theme && *custom_icon_name == '/' && g_file_test(custom_icon_name, G_FILE_TEST_IS_REGULAR)) + pix_theme = gdk_pixbuf_new_from_file_at_size(custom_icon_name, size, size, NULL); } if(!pix_theme && icon) { |