From 7ead88f69bb34ac692c5937ba99f12dd68bc9a5f Mon Sep 17 00:00:00 2001 From: Adam Schubert Date: Tue, 10 Oct 2023 20:38:22 +0200 Subject: [PATCH] fix(CI): Include correct files in repo --- .gitignore | 1 - var/lib/chromium-kiosk/.bash_profile | 8 ++++++++ var/lib/chromium-kiosk/.hushlogin | 0 var/lib/chromium-kiosk/.xinitrc | 19 +++++++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 var/lib/chromium-kiosk/.bash_profile create mode 100644 var/lib/chromium-kiosk/.hushlogin create mode 100644 var/lib/chromium-kiosk/.xinitrc diff --git a/.gitignore b/.gitignore index 9e20be8..e775fd6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ eggs/ lib64/ parts/ sdist/ -var/ *.egg-info/ .installed.cfg *.egg diff --git a/var/lib/chromium-kiosk/.bash_profile b/var/lib/chromium-kiosk/.bash_profile new file mode 100644 index 0000000..f9f6a64 --- /dev/null +++ b/var/lib/chromium-kiosk/.bash_profile @@ -0,0 +1,8 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc +if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then + exec startx >& /dev/null +fi diff --git a/var/lib/chromium-kiosk/.hushlogin b/var/lib/chromium-kiosk/.hushlogin new file mode 100644 index 0000000..e69de29 diff --git a/var/lib/chromium-kiosk/.xinitrc b/var/lib/chromium-kiosk/.xinitrc new file mode 100644 index 0000000..b741b48 --- /dev/null +++ b/var/lib/chromium-kiosk/.xinitrc @@ -0,0 +1,19 @@ +#!/bin/sh +xset -dpms # disable DPMS (Energy Star) features. +xset s off # disable screen saver +xset s noblank # don't blank the video device + +# Check if xscreensaver is installed, if it is run it + +if command -v xscreensaver &> /dev/null +then + xscreensaver -no-splash & # xscreensaver daemon +fi + +unclutter & # hides your cursor after inactivity +xfwm4 & +if [ -e ~/chromium-kiosk-prehook.sh ] # Check if prehook exists and run it +then + ~/chromium-kiosk-prehook.sh +fi +exec chromium-kiosk run --config_prod --log_dir=~/ && killall -u $USER