Personal tools
You are here: Home Team Members Thomas Janssen Remove only HD-Partition-Icons from Gnome Desktop and keep the Hotplug-Icons

Remove only HD-Partition-Icons from Gnome Desktop and keep the Hotplug-Icons

by Thomas Janssen last modified Mar 25, 2008 05:42 AM
— filed under:

Hiding unwanted device icons on your Fedora desktop. By default, Fedora displays all mounted device icons on the Desktop. I don't want them there, but I do want icons to show up for devices that I insert such as my thumb drive or a compact disk.

Applicable to Fedora Versions

  • Fedora Core 8

Requirements

  1. A working fedora 8 installation
  2. Knowledge of editing files with an Editor

Doing the Work

Open a terminal an become root (su -)

  1. touch the needed file:
  2. touch /usr/share/hal/fdi/policy/10osvendor/99-fedoraunity-storage-policy-fixed-drives.fdi
  3. Open the file with nano or gedit:
  4. nano /usr/share/hal/fdi/policy/10osvendor/99-fedoraunity-storage-policy-fixed-drives.fdi
  5. Copy/Paste the following content in it:
  6. <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> 

    <deviceinfo version="0.2">
    <device>
    <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
    <merge key="volume.ignore" type="bool">true</merge>
    </match>
    </match>
    </device>
    </deviceinfo>
Save and close the text editor.

Troubleshooting

How to test

The next time you log in the devices will be hidden but anything you mount or insert will be properly displayed.

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

Document Actions
Log in


Forgot your password?
New user?