mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix kiosk
This commit is contained in:
committed by
Aiden McClelland
parent
a2f65de1ce
commit
327e873ef6
@@ -10,8 +10,10 @@ apt install --no-install-recommends -y xserver-xorg x11-xserver-utils xinit fire
|
|||||||
cat > /home/start9/kiosk.sh << 'EOF'
|
cat > /home/start9/kiosk.sh << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PROFILE=$(mktemp -d)
|
PROFILE=$(mktemp -d)
|
||||||
|
use_https=
|
||||||
if [ -f /usr/local/share/ca-certificates/embassy-root-ca.crt ]; then
|
if [ -f /usr/local/share/ca-certificates/embassy-root-ca.crt ]; then
|
||||||
certutil -A -n "Embassy Local Root CA" -t "TCu,Cuw,Tuw" -i /usr/local/share/ca-certificates/embassy-root-ca.crt -d $PROFILE
|
certutil -A -n "Embassy Local Root CA" -t "TCu,Cuw,Tuw" -i /usr/local/share/ca-certificates/embassy-root-ca.crt -d $PROFILE
|
||||||
|
use_https=yes
|
||||||
fi
|
fi
|
||||||
cat >> $PROFILE/prefs.js << EOT
|
cat >> $PROFILE/prefs.js << EOT
|
||||||
user_pref("network.proxy.autoconfig_url", "file:///usr/lib/embassy/proxy.pac");
|
user_pref("network.proxy.autoconfig_url", "file:///usr/lib/embassy/proxy.pac");
|
||||||
@@ -22,7 +24,7 @@ user_pref("dom.securecontext.whitelist_onions", true);
|
|||||||
user_pref("signon.rememberSignons", false);
|
user_pref("signon.rememberSignons", false);
|
||||||
EOT
|
EOT
|
||||||
matchbox-window-manager -use_titlebar yes &
|
matchbox-window-manager -use_titlebar yes &
|
||||||
if [ "$(hostname)" == "embassy" ]; then
|
if [ -z "$use_https" ]; then
|
||||||
firefox-esr --kiosk http://localhost --profile $PROFILE
|
firefox-esr --kiosk http://localhost --profile $PROFILE
|
||||||
else
|
else
|
||||||
firefox-esr --kiosk https://$(hostname).local --profile $PROFILE
|
firefox-esr --kiosk https://$(hostname).local --profile $PROFILE
|
||||||
|
|||||||
Reference in New Issue
Block a user