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:
Post-Install Solutions
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
- A working fedora 8 installation
- Knowledge of editing files with an Editor
Doing the Work
Open a terminal an become root (su -)
- touch the needed file:
- Open the file with nano or gedit:
- Copy/Paste the following content in it:
touch /usr/share/hal/fdi/policy/10osvendor/99-fedoraunity-storage-policy-fixed-drives.fdi
nano /usr/share/hal/fdi/policy/10osvendor/99-fedoraunity-storage-policy-fixed-drives.fdi
<?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>
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

