Author Topic: add/remove icons from the desktop and Applications menus  (Read 5172 times)

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2448
  • a command shell is enough to do amazing things
add/remove icons from the desktop and Applications menus
« on: April 07, 2010, 13:26:15 PM »
I need to add/remove icons from the desktop and Applications menus. Which file will I need to uncompress and edit to achieve this?


there are different solutions, but the fastest way is:
  • do all configurations you need
  • open a terminal and compress the /root directory with "tar cfz /root.tgz /root"
  • copy the created file /root.tgz to the pluspacks directory
  • add at the bottom of the script ploplinux/myscripts/runme.sh the line "tar xfz /media/pluspacks/root.tgz -C /" to restore your settings at startup

best regards
elmar
« Last Edit: April 07, 2010, 13:28:18 PM by Elmar »

Thiassi

  • Newbie
  • *
  • Posts: 14
Re: add/remove icons from the desktop and Applications menus
« Reply #1 on: April 07, 2010, 13:35:44 PM »
Superb. Many thanks for all your help. :)

Alejandro

  • Newbie
  • *
  • Posts: 8
Re: add/remove icons from the desktop and Applications menus
« Reply #2 on: September 03, 2010, 17:50:51 PM »
I found an unpleasant side effect of this method. autostartx writes to /root/.bash_profile commands that run after start of terminal:
Code: [Select]
case \`tty\` in
    /dev/tty[1])
# place here any command that should auto start at terminal 1
# remove the # on the line below the see the text
# echo hello, this is terminal 1
startx

    ;;
esac
after several savings of /root directory these commands accumulate in .bash_profile and lead to the immediate relogin after logout in gnome. so it's require either delete unnecessary lines manually or (I prefer this) remove adding these lines from autostartx.

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2448
  • a command shell is enough to do amazing things
Re: add/remove icons from the desktop and Applications menus
« Reply #3 on: September 03, 2010, 18:53:37 PM »
after several savings of /root directory these commands accumulate in .bash_profile and lead to the immediate relogin after logout in gnome. so it's require either delete unnecessary lines manually or (I prefer this) remove adding these lines from autostartx.

to avoid this, you can add this check

Code: [Select]
case \`tty\` in
    /dev/tty[1])

CHECKFILE=/tmp/autorunonce.tmp

         if [ ! -f $CHECKFILE ]
         then
            touch $CHECKFILE
    # place here any command that should auto start at terminal 1
    # remove the # on the line below the see the text
    # echo hello, this is terminal 1
 
    startx
         fi
    ;;
esac

Alejandro

  • Newbie
  • *
  • Posts: 8
Re: add/remove icons from the desktop and Applications menus
« Reply #4 on: September 03, 2010, 19:13:57 PM »
Your solution is much better, thanks. I think about something similar but still can't accommodate to linux file-driven way of being )

On second thought... I presume this will lead to bloating of .bash_profile in future...
« Last Edit: September 03, 2010, 19:54:53 PM by Alejandro »