Created
August 15, 2018 01:53
-
-
Save preble/75b4da2f36f39d48ff6ed2a175b66fd5 to your computer and use it in GitHub Desktop.
Revisions
-
preble created this gist
Aug 15, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ # Full path: /home/pi/.config/lxsession/LXDE-pi/autostart @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xset s off @xset -dpms @xset s noblank @/home/pi/jmri-runner.sh This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/bin/bash # Full path: /home/pi/jmri-runner.sh # Sleep to hopefully wait until the window manager is fully started. # Added because I would sometimes start up the RPi and find that PanelPro was running, # but not visible in the window manager. Maybe there is a better way? sleep 10 lock=/tmp/jmri-runner.lock flock --nonblock $lock ~/JMRI/PanelPro if [ $? -ne 0 ]; then echo "PanelPro is already running. $lock is locked." exit 1 fi