Plop Forum

General Category => Plop Linux => Topic started by: Elmar on April 07, 2010, 13:26:15 PM

Title: add/remove icons from the desktop and Applications menus
Post by: Elmar 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:

best regards
elmar
Title: Re: add/remove icons from the desktop and Applications menus
Post by: Thiassi on April 07, 2010, 13:35:44 PM
Superb. Many thanks for all your help. :)
Title: Re: add/remove icons from the desktop and Applications menus
Post by: Alejandro 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.
Title: Re: add/remove icons from the desktop and Applications menus
Post by: Elmar 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
Title: Re: add/remove icons from the desktop and Applications menus
Post by: Alejandro 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...