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 The docstring says that the function returns true if mount succeeded or volume was already mounted. For the hal-pmount case if the volume was mounted hal-pmount returns the error code 4. However the vfs function dtreats this as error from the exec function and thus returns FALSE. A possible fix is that even on error check /proc/mount and if found return TRUE. Reproducible: Always
Created attachment 560 patch with this it returns true on subsequent invocations for a mounted volume.
Created attachment 563 Another idea How about this one instead?
yep, cleaner indeed. But let's hope gnome-mount does not have a similar quirk ;)
I haven't received complaints from Fedora/RedHat users, so I guess it acts more like mount.
Committed with revision 21799. 2006-05-23 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-volume-hal.c(thunar_vfs_volume_hal_mount): pmount-hal returns an error if the volume is already mounted. Bug #1833.