Fix handling of icons in GNotification
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Oct 2013 16:31:31 +0000 (12:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 28 Oct 2013 16:32:04 +0000 (12:32 -0400)
The fdo backend was sending a uri where a file path
was expected.

gio/gfdonotificationbackend.c

index a12203e..a667a2d 100644 (file)
@@ -246,7 +246,7 @@ call_notify (GDBusConnection     *con,
 
       file = g_file_icon_get_file (G_FILE_ICON (icon));
       g_variant_builder_add (&hints_builder, "{sv}", "image-path",
-                             g_variant_new_take_string (g_file_get_uri (file)));
+                             g_variant_new_take_string (g_file_get_path (file)));
     }
 
   body = g_notification_get_body (notification);