From a4988a48a31bce3f21e953b45efdab775a9b3db6 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Fri, 19 Oct 2018 18:42:55 +0100 Subject: [PATCH] Permit icon field in desktop file to be an absolute path --- src/pixbuf_util.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pixbuf_util.c b/src/pixbuf_util.c index 4b2af513..7cf4d697 100644 --- a/src/pixbuf_util.c +++ b/src/pixbuf_util.c @@ -234,6 +234,15 @@ gboolean register_theme_icon_as_stock(const gchar *key, const gchar *icon) { DEBUG_1("Couldn't load icon %s: %s", icon2, error->message); g_error_free(error); + error = NULL; + + /* try as an absolute path */ + pixbuf = gdk_pixbuf_new_from_file(icon, &error); + if (error) + { + DEBUG_1("Couldn't load icon as absolute path %s: %s", icon, error->message); + g_error_free(error); + } } g_free(icon2); } -- 2.20.1