Mercurial > hg > forks > geeqie
changeset 2853:c2c8f0d3183b
Permit icon field in desktop file to be an absolute path
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Fri, 19 Oct 2018 18:42:55 +0100 |
parents | 2bced2eec21b |
children | 3ccf51c15dba |
files | src/pixbuf_util.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pixbuf_util.c Fri Oct 19 10:51:27 2018 +0100 +++ b/src/pixbuf_util.c Fri Oct 19 18:42:55 2018 +0100 @@ -234,6 +234,15 @@ { 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); }