Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-20 11:19:19 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-09-20 11:19:19 (GMT)
commitbd8015ada50279a9c475ecbe711233b92d92ef17 (patch)
tree74a309ee484fcc73eb100d135e7dfdfc7776fb77 /extensions
parent2fa681b8c1880027536e036bf328cbce50a0e4d7 (diff)
Don't automount all the volumes at startup #1357
Diffstat (limited to 'extensions')
-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():