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

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Schoelje

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

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dagon
Level 7
Level 7
Posts: 1655
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

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

Post 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
Schoelje

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

Post 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!
Locked

Return to “Software & Applications”