Torxed / archinstall_gui

Guided Arch Linux graphical installer
GNU General Public License v3.0
26 stars 1 forks source link

perhaps some extra switches to add to chromium #16

Open steverweber opened 4 years ago

steverweber commented 4 years ago

I do some kiosk stuff using chromium. Perhaps some of these other switches might be helpful to add.

Thanks for working on this :)

https://github.com/Torxed/archinstall_gui/blob/bc93693bee1890e6c15a1882fed7b8a5fd5a6299/INSTALL/xinitrc#L37

# fresh file space to ensure no unsafe shutdown warning if browser crashed...
rm -rf /tmp/kiosk || true ; mkdir /tmp/kiosk || true
# --test-type               # removes warnings about security
# --no-sandbox              # needed when running as root
# --disable-web-security    # allow local files and CORS
# --check-for-update-interval=10 # 10 seconds show update box fast for testing..(default is like ~7h)
# --simulate-critical-update     # shows update as an icon hidden from user when in fullscreen
chromium-browser --test-type --no-sandbox --disable-web-security --user-data-dir=/tmp/kiosk \
    --window-position=0,0 --start-fullscreen \
    --check-for-update-interval=3628800 --simulate-critical-update \
    --disable-session-crashed-bubble --disable-restore-session-state \
    --noerrdialogs --disable-infobars \
    --enable-fast-unload --enable-tcp-fast-open --dns-prefetch-disable \
    --enable-logging=stderr \
    --kiosk http://127.0.0.1/index.html
steverweber commented 4 years ago

help prevent a popup if chrome is out of date. --simulate-critical-update --check-for-update-interval=36288001

passed to the service journal. --enable-logging=stderr

not sure why but chrome seemed to want to load at 10,10 --window-position=0,0

Torxed commented 4 years ago

Thank you for the feedback and information. I'll go through the switches and make sure they all work in the latest version of chromium, as these tend to get added/removed quite regularly. But they look really useful, so I'll try to get them into the first stable release! : )