summarylogtreecommitdiffstats
path: root/chromium-fullscreen.sh
blob: 550814b57dc9a99cf88ae2feb34035b390ad3641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# The URL variuabile where we will store the final address to open
URL=''

# This is usually the case of a Raspberry Pi-like installation ( arm platforms )
if [ -f "/boot/chromium-autostart-url.txt" ]; then
  URL=`cat /boot/chromium-autostart-url.txt`
# This is probably the case of generic setups on x86 platforms
elif [ -f "/home/chromium/chromium-autostart-url.txt" ]; then
  URL=`cat /home/chromium/chromium-autostart-url.txt`
fi

if [ ! -z "$URL" ]; then
  # Autostart Chromium in Fullscreen mode
  /usr/bin/xinit /usr/bin/chromium --desktop-window-1080p --kiosk "$URL"
else
  echo -e "==> [ERROR] No 'chromium-autostart-url.txt' file found."
fi