Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions/deviceicon/volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/deviceicon/volume.py')
-rw-r--r--extensions/deviceicon/volume.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/deviceicon/volume.py b/extensions/deviceicon/volume.py
index 4ccae7a..8955313 100644
--- a/extensions/deviceicon/volume.py
+++ b/extensions/deviceicon/volume.py
@@ -90,6 +90,12 @@ def _volume_added_cb(volume_monitor, volume, tray):
_mount(volume, tray)
def _mount(volume, tray):
+ # Follow Nautilus behaviour here
+ # since it has the same issue with removable device
+ # and it would be good to not invent our own workflow
+ if hasattr(volume, 'should_automount') and not volume.should_automount():
+ return
+
#TODO: should be done by some other process, like gvfs-hal-volume-monitor
#TODO: use volume.should_automount() when it gets into pygtk
if volume.get_mount() is None and volume.can_mount():