Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schlomo committed Sep 10, 2012
1 parent 489f41d commit b9a0719
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/var/lib/kiosk-browser/.xsession
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@ set -x
if test -r /etc/default/kiosk-browser ; then
source /etc/default/kiosk-browser
fi

# disable screen blanking
xset -dpms
xset s off
xset s noblank

# disable X cursor, found in http://ask.slashdot.org/comments.pl?sid=55567&cid=5415169
emptycursor="#define nn1_width 16
#define nn1_height 16
static unsigned char nn1_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
"
xsetroot -cursor <( echo "$emptycursor" ) <( echo "$emptycursor" )

while true; do
rm -Rf ~/.config/chromium/* ~/.cache/chromium/*
chromium-browser "${KIOSK_BROWSER_OPTIONS[@]}" --start-maximized --kiosk --app="${KIOSK_BROWSER_START_PAGE:=https://github.com/ImmobilienScout24/kiosk-browser}"
chromium-browser "${KIOSK_BROWSER_OPTIONS[@]}" --start-maximized --kiosk "${KIOSK_BROWSER_START_PAGE:=https://github.com/ImmobilienScout24/kiosk-browser}"
sleep 5
done

0 comments on commit b9a0719

Please sign in to comment.