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

Forum rules
Before you post please read how to get help
User avatar
Schoelje
Level 5
Level 5
Posts: 784
Joined: Wed Jan 18, 2012 6:25 am
Location: Netherlands
Contact:

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

Postby Schoelje » Sat Jul 14, 2012 6:20 pm

I'm trying to build LMDE with KDE desktop (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

User avatar
dagon
Level 7
Level 7
Posts: 1670
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

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

Postby dagon » Tue Jul 17, 2012 7:39 am

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

User avatar
Schoelje
Level 5
Level 5
Posts: 784
Joined: Wed Jan 18, 2012 6:25 am
Location: Netherlands
Contact:

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

Postby Schoelje » Tue Jul 17, 2012 8:25 am

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!


Return to “KDE”

Who is online

Users browsing this forum: No registered users and 0 guests