|
|
@@ -0,0 +1,51 @@
|
|
|
+#!/bin/bash
|
|
|
+#
|
|
|
+# Copyright (c) 2021 Clementine Computing LLC.
|
|
|
+#
|
|
|
+# This file is part of PopuFare.
|
|
|
+#
|
|
|
+# PopuFare is free software: you can redistribute it and/or modify
|
|
|
+# it under the terms of the GNU Affero General Public License as published by
|
|
|
+# the Free Software Foundation, either version 3 of the License, or
|
|
|
+# (at your option) any later version.
|
|
|
+#
|
|
|
+# PopuFare is distributed in the hope that it will be useful,
|
|
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+# GNU Affero General Public License for more details.
|
|
|
+#
|
|
|
+# You should have received a copy of the GNU Affero General Public License
|
|
|
+# along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
|
|
|
+#
|
|
|
+
|
|
|
+# meant to be called from `/etc/rc.local` via a `startx` call. e.g.:
|
|
|
+#
|
|
|
+# ( sleep 5 && su -c "/usr/bin/startx /home/bus/bin/piu_wrapp 2>&1 /tmp/piu_wrapp.log" ) &
|
|
|
+#
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+export BASEDIR=/home/pi
|
|
|
+export DISPLAY=:0
|
|
|
+
|
|
|
+/usr/bin/matchbox-window-manager \
|
|
|
+ -use_cursor no \
|
|
|
+ -use_titlebar no &
|
|
|
+
|
|
|
+# turn off screensave/screen blanking
|
|
|
+#
|
|
|
+xset s noblank
|
|
|
+xset s off
|
|
|
+xset -dpms
|
|
|
+
|
|
|
+unclutter -idle 0.05 -root &
|
|
|
+
|
|
|
+rm -f /tmp/kiosk.info
|
|
|
+touch /tmp/kiosk.info
|
|
|
+echo "DISPLAY=$DISPLAY" >> /tmp/kiosk.info
|
|
|
+echo "XAUTHORITY=$XAUTHORITY" >> /tmp/kiosk.info
|
|
|
+
|
|
|
+sleep 1
|
|
|
+
|
|
|
+/home/bus/bin/piu_app > /tmp/piu_app.log 2>&1
|
|
|
+
|