! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
crash on clicking mounted removable media if mounted by another app
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Jani Monoses 2006-05-22 19:50:31 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060513 Ubuntu/dapper Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060513 Ubuntu/dapper Firefox/1.5.0.3

if thunar or gnome-volume-manager mount the volume instead of xfdesktop itself,
then volume && is_mounted does not imply has VfsInfo. So info is null and leads to crash. So whether it's mounted or not make sure we get it mounted so we have an info attached. And only affects pmount-hal style dynamically created deleted mountpoint setups.

Patch inlined since it's very small. This however depends on thunar's vfsmount allowing remount (bug #1833) or else it will not crash but pop up an error dialog.

Index: src/xfdesktop-file-icon-manager.c
===================================================================
--- src/xfdesktop-file-icon-manager.c   (revision 21756)
+++ src/xfdesktop-file-icon-manager.c   (working copy)
@@ -345,7 +345,7 @@

     TRACE("entering");

-    if(volume && !thunar_vfs_volume_is_mounted(volume)) {
+    if(volume) {
         GtkWidget *toplevel = gtk_widget_get_toplevel(GTK_WIDGET(fmanager->priv->icon_view));
         GError *error = NULL;



Reproducible: Always

Steps to Reproduce:
1.start thunar and xfdesktop
2.plug in pmount-hal controlled media
3.click it in thunar
4.click its desktop icon
Comment 1 Brian J. Tarricone (not reading bugmail) 2006-05-22 20:17:44 CEST
Hmm, I think to be safe we should always just check to see if info is NULL, and if it's a removable volume and is mounted, try to check the mountpoint again and get a non-NULL info.  I'll play with this tonight when I get home.
Comment 2 Jani Monoses 2006-05-22 20:27:31 CEST
right, that would make it independent of thunar mount's behaviour.
Since crashes occur(ed) mostly on lack of info, if it could be NULL-ed on unmount
there would not be a need for so many checks and corner case, just info or !info.
Comment 3 Brian J. Tarricone (not reading bugmail) 2006-05-23 08:41:14 CEST
Ok, I'm pretty sure this should be fixed now (svn r21784).  Reopen if not, as I haven't tested it.

Bug #1837

Reported by:
Jani Monoses
Reported on: 2006-05-22
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information