WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Removing default desktop icons in LXDE  (Read 5592 times)

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Removing default desktop icons in LXDE
« on: September 28, 2010, 09:13:20 PM »
Ive installed Microcore with the LXDE desktop which is running very nicely.
However Id like to remove some of the default icons (Exit,Appbrowser,Control panel etc) Presently they keep coming back if I just delete them so there must be some kind of config file somewhere.

Tips welcome !
« Last Edit: September 29, 2010, 01:36:50 PM by Terminator3000 »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Removing default desktop icons in LXDE
« Reply #1 on: September 29, 2010, 02:10:01 AM »
Replace the /usr/local/bin/lxde symlink with the file, then comment out the relevant if...fi section like this:

Quote
...
...

if [ ! -f ~/.config/Desktop/terminal.desktop ]; then
    cp /usr/local/share/applications/terminal.desktop ~/Desktop
fi

if [ ! -f ~/.config/Desktop/appbrowser.desktop ]; then
    cp /usr/local/share/applications/appbrowser.desktop ~/Desktop
fi

if [ ! -f ~/.config/Desktop/cpanel.desktop ]; then
    cp /usr/local/share/applications/cpanel.desktop ~/Desktop
fi

#if [ ! -f ~/.config/Desktop/exit.desktop ]; then
#    cp /usr/local/share/applications/exit.desktop ~/Desktop
#fi

...
...

This will inhibit restore of selected default desktop icons, in the above example, Exit.

Next delete /home/tc/Desktop/......desktop and add /usr/local/bin/lxde to your backup.

Please note, you can not disable MyDocuments icon on this way.
« Last Edit: September 29, 2010, 02:12:10 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Re: Removing default desktop icons in LXDE
« Reply #2 on: September 29, 2010, 11:12:33 AM »
Thanks Ill try this but at the moment I cant get hash sign on my keyboard !! Still trying to find how to change keymap from us to uk/gb!  (Seperate post started)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Removing default desktop icons in LXDE
« Reply #3 on: September 29, 2010, 11:18:01 AM »
Thanks Ill try this but at the moment I cant get hash sign on my keyboard !! Still trying to find how to change keymap from us to uk/gb!  (Seperate post started)

You can use DEL instead of # :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Removing default desktop icons in LXDE
« Reply #4 on: September 29, 2010, 11:47:48 AM »
Thanks Ill try this but at the moment I cant get hash sign on my keyboard !!

I have always gone with the default us on uk keyboards on TC (as well as in some other distros).
Not really an issue beyond from learning where what is.
Perhaps looking at keymaps on the web (and possibly print them out) might help.

Here # is where kb shows the Pound sign (shift+3).

HTH
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Re: Removing default desktop icons in LXDE
« Reply #5 on: September 29, 2010, 12:22:35 PM »
Thanks I found # key above no3 but now no uk currency symbol!!

Regarding the desktop icons lxde file is read only and cant be changed (as far as I can see) so not sure what to do there.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Removing default desktop icons in LXDE
« Reply #6 on: September 29, 2010, 12:29:10 PM »
Please reread the first line of post 2.

Offline Terminator3000

  • Jr. Member
  • **
  • Posts: 64
Re: Removing default desktop icons in LXDE
« Reply #7 on: September 29, 2010, 12:37:29 PM »
Hi yes I tried replacing the file first to a backup then directly but it just becomes a standard file not a link.Rebooting deletes any new files and brings back the old ones (not added yet to .filetool.lst) I guess I'm not entirely sure what he means by

'replace  <path> symlink with the file'

ie which file, the same one ?    There are also 2 shortcut files in the directory 1 each in upper and lower case lxde.