You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, December 22nd 2005, 5:09am

Device icon on desktop after mount

Is it possible to have an icon get placed on the desktop after mounting a storage device? For example a USB stick? I am able to get KDE to mount and open a window browsing it automatically and I can also place an icon on the desktop for it that illustrates whether the device is mounted or not but is it possible to have an icon appear when it is mounted (or even plugged in and mounted automatically) and disappear when the device is removed? any help would be great...

also, is there a way to get the trashcan back on the desktop, I don't seem to have one...

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Thursday, December 22nd 2005, 11:20am

RE: Device icon on desktop after mount

Quoted

also, is there a way to get the trashcan back on the desktop, I don't seem to have one...


Make a file ~/Desktop/trash.desktop and put the following contents in it:

Source code

1
2
3
4
5
6
7
8
9
[Desktop Entry]
Comment=Contains removed files
Comment[nl]=Bevat de verwijderde bestanden
EmptyIcon=trashcan_empty
Encoding=UTF-8
Icon=trashcan_full
Name=Trash
Type=Link
URL=trash:/


Maybe there's a better (read: less hacky) way, but I couldn't think of one ;)
Bram Schoenmakers
KDE Netherlands (www.kde.nl)