Main Menu

autostartx

Started by andreas, August 17, 2010, 10:11:53 AM

Previous topic - Next topic

andreas

hi elmar.

i want to start automatically an aplication after x has started. in the autostartx script you suggest to add a command to auto start in terminal 1, but this is not working.
i have modified in the following way
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
             /media/myApplication/startup
   startx

    ;;
esac

the application is executed but stops immediatly, because x is not available !

any idea how to do this in a better way?

Thanks for your help
Andreas





Elmar

#1
hi,
remove your line from the autostartx.

bootup ploplinux
copy the file /root/gnome to the ploplinux/myscripts directory (or wherever you want).
edit the copied file gnome. insert the line "exec /media/myApplication/startup &" above "exec gnome-session"

then edit ploplinux/myscripts/runme.sh
insert the line (with your path of the new gnome file) "cp /media/ploplinux/myscripts/gnome /root/gnome" above the line "sh autostartx"

now, your applications will be started when you use startx or the autostartx with runme.sh

best regards
elmar

andreas

Hi Elmar.

works perfect.

thanks a lot.
Andreas