summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c5
1 files changed, 4 insertions, 1 deletions
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