summarylogtreecommitdiffstats
path: root/chromium-fullscreen.install
blob: a0dca1e6886d07e72484c0e479d153a73618e168 (plain)
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
27
28
29
30
31
post_install() {
  # Update systemd sysusers
  systemd-sysusers

  # Create Home folder
  mkdir -p /home/chromium

  # Create a first sample of Autostart Url
  echo -e "https://www.archlinux.org/\n" > /home/chromium/chromium-autostart-url.txt

  # Fix permissions
  chown -R chromium:chromium /home/chromium

  # Enable the xlogin service
  systemctl enable xlogin@chromium

  # Print additional useful informations
  echo -e "==> [INFO] For comodity, the file '/home/chromium/chromium-autostart-url.txt' has been created for you. That file although can be located also on:"
  echo -e "==> [INFO] - '/boot/chromium-autostart-url.txt'"
  echo -e "==> [INFO] - '/home/chromium/chromium-autostart-url.txt'"
  echo -e "==> [INFO] Order is mandatory! The first that matches, is the first that wins."
  echo -e "==> [INFO] Please restart in order to start Chromium Fullscreen."
}

post_upgrade() {
  # Update systemd sysusers
  systemd-sysusers

  # Fix permissions
  chown -R chromium:chromium /home/chromium
}