Reb
Posts: 3
Joined: Tue Jan 19, 2016 9:43 pm

autostart shell not work efter edit

Tue Jan 19, 2016 9:52 pm

Hey all

I created a sh script to be autostarting after reboot via ~/.config/lxsession/LXDE/autostart
It's works fine first time and after reboot, the I edited the scipt, and now it not working.
The script works when I execute it manually but not after reboot.

I tried to take the script out and put a simple @leafpad to start it still not work

kind regards Linux noob

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: autostart shell not work efter edit

Wed Jan 20, 2016 4:41 am

Can you show us the script?
Account Inactive

Reb
Posts: 3
Joined: Tue Jan 19, 2016 9:43 pm

Re: autostart shell not work efter edit

Wed Jan 20, 2016 7:30 am

The first script

#!/bin/sh
DELAY="120"
/usr/bin/feh --quiet --recursive -- randomize --full-screen --zoom max --hide-pointer --slideshow-delay $DELAY

Then i change it to
#!/bin/sh
/usr/bin/feh --quiet --full-screen --zoom max --hide-pointer --slideshow-delay DELAY 10

The second script works fine manually

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: autostart shell not work efter edit

Wed Jan 20, 2016 7:45 am

Take the word DELAY out of the second script.
Account Inactive

Reb
Posts: 3
Joined: Tue Jan 19, 2016 9:43 pm

Re: autostart shell not work efter edit

Wed Jan 20, 2016 9:15 am

Sorry SonOfAMotherlessGoat

I mistyped the script, the new is without the DELAY

/usr/bin/feh --quiet --full-screen --zoom max --hide-pointer --slideshow-delay 10

Return to “General discussion”