2

I am trying to execute a simple script lxterminal -e "/home/pi/superscript.sh" in a normal terminal it works perfectly. But if i try putting it in to /etc/xdg/lxsession/LXDE-pi/autostart witch looks like this after this procedure:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@lxterminal -e "/home/pi/superscript.sh"

Nothing happens after start up. What could be the error here?

Coder_fox
  • 135
  • 1
  • 5

2 Answers2

2

If using lxterminal Don't forget to set the working directory with --working-directory="/home/pi/somedirectory", specially if you try to call some program not in standard path!

MatsK
  • 2,882
  • 3
  • 17
  • 22
mt22
  • 21
  • 1
2

The global LXDE autostart file is ignored if there is a local autostart.

In Raspbian there is a local file: /home/pi/.config/lxsession/LXDE-pi/autostart.

Adding the command to that file should start it when you log in to the GUI.

Dirk
  • 3,749
  • 3
  • 19
  • 27