After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325476 - Cannot disable desktop display of one mounted HD
Cannot disable desktop display of one mounted HD
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Other
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-02 02:25 UTC by Andrew Conkling
Modified: 2008-09-06 19:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Conkling 2006-01-02 02:25:31 UTC
I have a Microsoft Windows partiton that I have configured to automount on boot.  I like the fact that it shows up in the Places menu on the GNOME panel and in the Places bar and the Computer in Nautilus.  However, since it is always available, I would like it not to show up on the desktop.  Additionally, I like removable media--CD drives and such--to show up on the desktop.  

However, there's not a way to turn off only the desktop display of mounted HDs.  A global HD setting or a per-drive setting would be ideal.

Here is my pertinent /etc/fstab line:
/dev/hda1 /media/windows ntfs ro,auto,user,fmask=0111,dmask=0000    0 0

And here's what I've tried to rectify this:
- Mounting drive as /media/windows and /mnt/windows (no difference)
- Mounting drive without user flag set (disappears from the desktop, but also from the other places it was listed)
- Searched gconf for some relevant settings

I found a gnome-vfs 'debugger' here: http://www.gnome.org/~jamesh/code/gvfs-list-drives.c

Here's the output from it:
Drive 5:
    Device type:    harddrive
    Device path:    /dev/hda1
    Activation URI: file:///mnt/windows
    Display name:   windows
    Icon:           gnome-dev-removable
    HAL UDI:        (null)
    User visible:   true
    Connected:      true
    Mounted:        true

    Volume 5:
        Volume type:     mountpoint
        Device type:     harddrive
        Device path:     /dev/hda1
        Activation URI:  file:///mnt/windows
        Filesystem type: ntfs
        Display name:    windows
        Icon:            gnome-dev-harddisk
        HAL UDI:         (null)
        User visible:    true
        Read only:       true
        Mounted:         true
        Handles trash:   false
Comment 1 Andrew Conkling 2006-01-02 03:01:04 UTC
Also, someone helping me asked me to post the output of the gvfs-list-drives when the drive is mounted without the user option in fstab.  Now it's listed as a drive-less volume (it was listed as a drive before):

Drive-less volumes:
    Volume 12:
        Volume type:     mountpoint
        Device type:     harddrive
        Device path:     /dev/hda1
        Activation URI:  file:///mnt/windows
        Filesystem type: ntfs
        Display name:    windows
        Icon:            gnome-dev-harddisk
        HAL UDI:         (null)
        User visible:    false
        Read only:       true
        Mounted:         true
        Handles trash:   false
Comment 2 Patrick McLean 2006-05-09 21:07:21 UTC
I am seeing this as well, on several different machines runnin g Gentoo. Here is the relevant entry from gvfs-list-drives.c is below. Here is the fstab entry:

/dev/hda7   /mnt/local      ext3            noatime             0 0                   

 
Drive 6:
    Device type:    harddrive
    Device path:    /dev/hda7
    Activation URI: file:///mnt/local
    Display name:   33.0 GB Volume
    Icon:           gnome-dev-removable
    HAL UDI:        /org/freedesktop/Hal/devices/volume_uuid_94691ab6_3664_4c47_aa1a_2b18aaecd6c6
    User visible:   true
    Connected:      true
    Mounted:        true

    Volume 1:
        Volume type:     mountpoint
        Device type:     harddrive
        Device path:     /dev/hda7
        Activation URI:  file:///mnt/local
        Filesystem type: ext3
        Display name:    33.0 GB Volume
        Icon:            gnome-dev-harddisk
        HAL UDI:         /org/freedesktop/Hal/devices/volume_uuid_94691ab6_3664_4c47_aa1a_2b18aaecd6c6
        User visible:    true
        Read only:       false
        Mounted:         true
        Handles trash:   true


The drive is not mounted with the user option, and yet it still shows up on the desktop.
Comment 3 Andrea Vettorello 2006-05-11 16:27:41 UTC
Related Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365670

"Package: nautilus
Version: 2.12.2-2
Severity: normal

Since some time[1], Nautilus is showing icons on my desktop for /usr/local
and /var/root.  These filesystems have no special options in /etc/fstab:

  /dev/hda7       /usr            ext2    defaults  0 2
  /dev/hda12      /usr/local      ext2    defaults  0 2
  /dev/hda8       /var            ext2    defaults  0 2
  /dev/hda13      /var/root       ext2    defaults  0 2

so I wouldn't expect them to show up on the desktop.

I can disable their appearance by unsetting the volumes_visible option in
gconf, but then my 'truly hotplugged' filesystems don't show up either."

Comment 4 André Klapper 2008-09-06 19:07:58 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html