Page 1 of 1

[SOLVED] How to get rid of those desktop icons?

Posted: Sat Jul 14, 2012 6:20 pm
by Schoelje
I'm trying to build LMDE with KDE desktop (http://forums.linuxmint.com/viewtopic.php?f=61&t=106426), but how can I get rid of those pesky desktop icons (Home and Trash) for each new user that is being created.

I searched everywhere for a config file or script that creates (or copies) the home.desktop and trash.desktop file to the new user's desktop, but I could not find any.

The goal is that every time a new user is created his desktop will be immaculately clean...no icons, just the folderview and a wallpaper.

Who can help?

[SOLVED]

Code: Select all

sudo rm -v /usr/share/kde4/apps/kio_desktop/directory.trash
sudo rm -rv /usr/share/kde4/apps/kio_desktop/DesktopLinks

Re: [SOLVED] How to get rid of those desktop icons?

Posted: Tue Jul 17, 2012 7:39 am
by dagon
Schoelje wrote: [SOLVED]

Code: Select all

sudo rm -v /usr/share/kde4/apps/kio_desktop/directory.trash
sudo rm -rv /usr/share/kde4/apps/kio_desktop/DesktopLinks
I don't think that will work. Just removing a file in there could backfire as it might get recreated when you update the system sometime in the future.

Go to the source instead. New users are created from a template in /etc/skel
http://www.skolelinux.no/~klaus/newnotater/x2895.html

Re: [SOLVED] How to get rid of those desktop icons?

Posted: Tue Jul 17, 2012 8:25 am
by Schoelje
Yes, you are right.
Removing the files instead of using skel is what the Mint team had decided for their distributions.
But if you reinstall kde-runtime-data, the files are recreated.
Creating /etc/skel/Desktop (but musn't be empty, so I included the .desktop file) does prevent the creation of the desktop icons
Thanks!