! 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 !
Xfdesktop can't open an auto-mounted plugged storage device
Status:
RESOLVED: WORKSFORME
Product:
Xfdesktop
Component:
General

Comments

Description Zenwalk 2010-12-21 11:12:18 CET
- Insert a usb storage device
- Volman mount it and launch Thunar on the root of the usb storage device
- Then close Thunar
- Try to 2-click on the usb storage device Desktop special icon -> nothing
- Then right-click on the usb storage device Desktop special icon -> eject
- Then right-click on the usb storage device Desktop special icon -> mount
- 2-click on the usb storage device Desktop special icon -> Xfdesktop can now open it with Thunar
Comment 1 Jannis Pohlmann editbugs 2011-01-22 13:01:42 CET
I can reproduce it here.
Comment 2 Jannis Pohlmann editbugs 2011-01-25 02:27:15 CET
Fixed in master using a dirty workaround. Please give this some testing (you can cherry-pick it as it should apply fine to the 4.8.0 release). If it works then I'll merge it into the xfce-4.8 branch and will make a 4.8.1 release.

commit 7c5dcc4fb85776174e9238c15991a7948a95529d
Author: Jannis Pohlmann <jannis@xfce.org>
Date:   Tue Jan 25 02:21:40 2011 +0100

    Handle volume changes in a timeout (bug #7025).
    
    When the "volume-changed" signal of GVolumeMonitor or the "changed"
    signal of GVolume are emitted after a volume has been mounted, then for
    some reason the affected GVolume still has no valid GMount. Same happens
    when unmounting: the GVolume still has a valid GMount.
    
    This commit works around this by checking for a change from valid to
    invalid GMount or from invalid to valid GMount in a timeout that is
    called at most 5 times until it gives up. When a change is detected, the
    corresponding XfdesktopVolumeIcon is updated.
    
    I hope this is a suitable workaround for most machines/drives. The
    underlying issue seems to be in GIO or GVfs. It might be worth finding
    the root cause.
Comment 3 Jannis Pohlmann editbugs 2011-01-25 02:27:46 CET
Erm, I'm leaving it open for feedback.
Comment 4 Zenwalk 2011-01-25 10:01:18 CET
(In reply to comment #3)
> Erm, I'm leaving it open for feedback.


A dirty , but a good fix :)

Seems to work properly

Thx
JP
Comment 5 Jannis Pohlmann editbugs 2011-02-27 22:42:10 CET
*** Bug 7361 has been marked as a duplicate of this bug. ***

Bug #7025

Reported by:
Zenwalk
Reported on: 2010-12-21
Last modified on: 2011-02-27
Duplicates (1):
  • 7361 Desktop Icon has tooltip "Removable Volume Not Mounted" when volume mounted.

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Attachments

Additional information