PDA

View Full Version : How to remove device icons on Desktop?



matbehns
02-08-2005, 10:41 AM
Hi,

I installed Knoppix v3.7 on my harddrive. Whenever I boot the system it creates icons for hda1, hda2, cdrom on my desktop. Where can I deactivate this? I had a look in /etc/fstab but couldnt figure it out!

Thanks for reply ... Mat

rusty
02-08-2005, 02:36 PM
Right click on the desktop, behavior, device icons and uncheck the show device icons box.

CrashedAgain
02-08-2005, 03:36 PM
The icons are created by /usr/bin/mkdesktophdicons. You can just disable this file by adding the line 'exit 0' as the first active line of the file:



#!/bin/bash
# (C) Klaus Knopper Nov 2002
# Recreate desktop icons for CD-Roms and harddisks in KDE and GNOME
# This script must be run as the logged in user.

# modified by CrashedAgain to do nothing
exit 0

# you can delete the rest of the file


I wouldn't remove the file completely, this may cause an error in whatever script calls it.

You will of course have to delete the icons from the desktop. The above will keep them from being recreated.

[/code]

matbehns
02-10-2005, 11:20 AM
@rusty

Thanks, but the devices in this panel were disabled already. Still some other file created them.

@CrashedAgain

Thank you very much, that solved my issue. I looked for this file all over /etc never figured to look in a different location. Now it works fine! Also learned that I can stop executing a file by setting exit=0 ;) I am not a programmer or shell scripter at all.

nice week to both of you

Mat