I've got a python Bottle program which uses Bottles own internal dev server and I'm trying to get it to start up automatically in Lubuntu. I created a bash script like this:
nohup python /home/user/mybottle/mybottle.py & sleep 5 firefox & sleep 5 xdotool key "F11"
I've set the script executable and if I run it directly from the terminal the script works fine (some gtk critical messages fromFirefox but it still seems to work). If I call this script in ~/.config/lxsession/Lubuntu/autostart with this:
and reboot the machine the Bottle program doesn't seem to start, Firefox does, but then won't go to fullscreen with xdotool and obviously Firefox can't find my program running on localhost. There is no python entry when checking top either so quite sure the python program isn't running.
I've tried starting it with crontab, rc.local and a .conf in /etc/init as well as separating the python script off and nothing will getting it going and leaving it running in the background. I'm not really sure where I'm looking for an error log for these different methods either as any of the logs I've tried looking at don't make any mention of the script.
As a last ditch attempt I tried the .desktop method mentioned in other threads but that isn't working either. Removing nohup makes no difference.
How do I get my python program running on startup? Lubuntu is set to login automatically without needing the password input.