From 0a84eac2c5115d6a21e98e4797fbf6407cf5712b Mon Sep 17 00:00:00 2001 From: Alfio Emanuele Fresta Date: Sat, 5 Aug 2017 22:18:55 +0100 Subject: unescape URI-encode paths for icon files Fix #117 --- src/daemon/daemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 149025a..72b94a4 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -955,9 +955,12 @@ static GdkPixbuf* _notify_daemon_pixbuf_from_path(const char* path) if (!strncmp (path, "file://", 7)) { path += 7; + + /* Unescape URI-encoded, allowed characters */ + path = g_uri_unescape_string (path, G_URI_RESERVED_CHARS_ALLOWED_IN_PATH); } - /* Load file */ + /* Load file */ pixbuf = gdk_pixbuf_new_from_file (path, NULL); } else -- cgit v1.2.1