Ticket #1357: sugar-1357.patch

File sugar-1357.patch, 963 bytes (added by alsroot, 15 years ago)
  • extensions/deviceicon/volume.py

    From f36449da95c4f072936d34f55dfa0aa9fa6d6c0f Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Sun, 20 Sep 2009 10:43:34 +0000
    Subject: Don't automount all the volumes at startup #1357
    
    ---
     extensions/deviceicon/volume.py |    5 +++++
     1 files changed, 5 insertions(+), 0 deletions(-)
    
    diff --git a/extensions/deviceicon/volume.py b/extensions/deviceicon/volume.py
    index 4ccae7a..2e9cbeb 100644
    a b def _setup_volumes(tray): 
    7777    volume_monitor = gio.volume_monitor_get()
    7878
    7979    for volume in volume_monitor.get_volumes():
     80        # Follow Nautilus behaviour here
     81        # since it has the same issue with removable device
     82        # and it would be good to not invent our own workflow
     83        if not volume.should_automount():
     84            continue
    8085        _mount(volume, tray)
    8186
    8287    for mount in volume_monitor.get_mounts():