Author Topic: autostartx  (Read 6572 times)

andreas

  • Newbie
  • *
  • Posts: 2
autostartx
« on: August 17, 2010, 10:11:53 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • a command shell is enough to do amazing things
Re: autostartx
« Reply #1 on: August 17, 2010, 10:29:46 AM »
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
« Last Edit: August 17, 2010, 10:31:37 AM by Elmar »

andreas

  • Newbie
  • *
  • Posts: 2
Re: autostartx
« Reply #2 on: August 17, 2010, 11:20:43 AM »
Hi Elmar.

works perfect.

thanks a lot.
Andreas