summarylogtreecommitdiffstats
path: root/chromium-fullscreen.xinitrc
blob: 05b08a850e68b6f3a1acfb94a6a802f12578fd9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# 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


# Autostart Chromium in Fullscreen mode
exec /usr/bin/chromium --desktop-window-1080p --kiosk "$URL"