diff options
author | Aleksey 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) |
commit | bd8015ada50279a9c475ecbe711233b92d92ef17 (patch) | |
tree | 74a309ee484fcc73eb100d135e7dfdfc7776fb77 | |
parent | 2fa681b8c1880027536e036bf328cbce50a0e4d7 (diff) |
Don't automount all the volumes at startup #1357
-rw-r--r-- | extensions/deviceicon/volume.py | 6 |
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(): |