diff options
author | Jonathan Bauer | 2020-01-30 18:13:36 +0100 |
---|---|---|
committer | Jonathan Bauer | 2020-01-30 18:13:36 +0100 |
commit | 6f3224cc3bc2b802b063e1116de46f17224eb66d (patch) | |
tree | 7ad9b018fb8c1ac0473cb8969f3e5fbe5115f1a2 /core/modules/kiosk-chromium | |
parent | [kiosk-slxbrowser] wait 0.5sec before starting (diff) | |
download | mltk-6f3224cc3bc2b802b063e1116de46f17224eb66d.tar.gz mltk-6f3224cc3bc2b802b063e1116de46f17224eb66d.tar.xz mltk-6f3224cc3bc2b802b063e1116de46f17224eb66d.zip |
[kiosk-*] maximized/fullscreen w/o openbox
Diffstat (limited to 'core/modules/kiosk-chromium')
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium index 67ebfcb8..9ee4ca19 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium +++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium @@ -58,15 +58,20 @@ cat > "$HOME/.config/chromium/Default/Bookmarks" <<EOF EOF # default chromium arguments -chromium_args=("--noerrdialogs" "--disable-new-avatar-menu" "--disable-infobars" "--test-type") +chromium_args=("--noerrdialogs" "--disable-translate" "--disable-new-avatar-menu" "--disable-infobars" "--test-type" "--fast" "--fast-start") -if [ -z "$SLX_BROWSER_INTERACTIVE" ]; then - # non-interactive, set to kiosk mode - chromium_args+=("--kiosk") +# simulate a future build date to remove those update notification +# TODO properly disable auto update feature when chromium supports it +chromium_args+=("--simulate-outdated-no-au=\"Tue, 31 Dec 2099 23:59:59 GMT\"") + +# default to maximized on startup +chromium_args+=("--start-maximized") - # simulate a future build date to remove those update notification - # TODO properly disable auto update feature when chromium supports it - chromium_args+=("--simulate-outdated-no-au=\"Tue, 31 Dec 2099 23:59:59 GMT\"") +if [ -z "$SLX_BROWSER_INTERACTIVE" ]; then + if [ -n "${SLX_AUTOLOGIN%OFF}" ]; then + # Autologin active, go full fullscreen + chromium_args+=("--kiosk") + fi # swallow keyboard shortcuts of chromium cat <<- EOF > "$HOME/.xbindkeysrc" |