Closed dbuscombe-usgs closed 1 year ago
yes, this was an early issue #9 which we decided to close b/c it was annoying.. but its worth figuring out now..
Worked on this for a while, should be as simple as adding a single line to crontab but it is not. Do you have any ideas on this?
@dbuscombe-usgs - ideas?
I will also look into this..
I have tried.. i am trying rc.local.. but it is not working... I found this: https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/all
which suggests the reason its not working is that i am trying to use graphical elements before its possible...
this is now done via instructions here: https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/all
i.e., in terminal type:
mkdir /home/pi/.config/autostart
nano /home/pi/.config/autostart/instagrain.desktop
in nano, type this:
[Desktop Entry]
Type=Application
Name=Instagrain
Exec=/home/pi/Desktop/RUN.sh
then control-x to save.. leave nano and reboot..
there might also be other options, listed in: https://raspberrypi.stackexchange.com/questions/98944/launch-a-gui-tkinter-program-on-boot
Run.sh can be very hard to launch in the field, eg when wet or sandy. It can take 10 or more tries to launch by double click. I'd prefer the program launched at startup