GNOME Bugzilla – Bug 539780
Crash when dragging from background capplet to desktop
Last modified: 2008-08-11 16:23:23 UTC
Start gnome-appearance-properties and switch to the Background tab. Now, repeatedly drag backgrounds from the capplet to the Nautilus desktop. It will crash here:
+ Trace 201176
because file_scheme = NULL. This comes from 4795 for (p = location_list_from_uri_list (item_uris); p != NULL; p = p->next) { 4796 file_scheme = g_file_get_uri_scheme ((GFile *)p->data); and item_uris is a single-element list where (gdb) p (char *) item_uris->data $8 = 0x878a5b0 "/usr/share/wallpapers/suse103-1920x1200.jpg" Looks like we could simply use g_file_has_uri_scheme() instead of a manual strcmp().
This started as https://bugzilla.novell.com/show_bug.cgi?id=401243
Created attachment 113277 [details] [review] suggested fix Also fixes the same get_uri_scheme + strcmp just above. (Note that dragging the file to the desktop is still somewhat silly, since that dialog instantly applies the new background image on-click.)
there is a similar crash when doing rhythmbox artwork dnd described on https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/253153, could somebody consider the patch attached to the bug?
This looks good to me, but I'm not sure if g_file_get_uri_scheme () is supposed to return NULL, so maybe there's another bug around in glib/gvfs?
2008-08-11 A. Walton <awalton@gnome.org> * libnautilus-private/nautilus-file-operations.c (nautilus_file_operations_copy_move): Use g_file_has_uri_scheme() instead of rolling our own. Fixes bug #539780.