blob: 43af36402adb78bf05ce2b66f99a2a7d5069e378 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
# generic kiosk mode launcher
. /opt/openslx/config
[ -z "$SLX_BROWSER_URL" ] && exit 1
# disable power management features
xset s off
xset -dpms
# start openbox window manager
openbox --config-file "/etc/xdg/openbox/rc.xml.kiosk" &
# move the mouse away
xdotool mousemove 20000 20000 &
# run browser
for file in "$0".d/*; do
. "$file" || slxlog "kiosk-launch" "Failed to source '$file'."
done
# should not come to this point as above sources should
# exec away
slxlog "kiosk-launch" "No kiosk browser configured!"
exit 1
|