|
@@ -121,7 +121,8 @@ set_start_script_single() {
|
|
|
# Write the script with properly formatted commands
|
|
# Write the script with properly formatted commands
|
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
-/usr/bin/chromium --no-first-run --disable-translate --no-default-browser-check --disable-cache --kiosk $website
|
|
|
|
|
|
|
+/usr/bin/chromium --force-device-scale-factor=$scaling_factor --temp-profile --disable-profiles --no-first-run --disable-translate --no-default-browser-check --disable-cache --ignore-certificate-errors --disable-web-security --kiosk $website
|
|
|
|
|
+
|
|
|
EOF
|
|
EOF
|
|
|
chmod a+x /home/kiosk/start.sh
|
|
chmod a+x /home/kiosk/start.sh
|
|
|
}
|
|
}
|
|
@@ -144,7 +145,7 @@ configure_tabs() {
|
|
|
# Write the script with properly formatted commands
|
|
# Write the script with properly formatted commands
|
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
-/usr/bin/chromium --incognito --force-device-scale-factor=$scaling_factor --temp-profile --disable-profiles --no-first-run --disable-translate --no-default-browser-check --disable-cache --kiosk $tab_urls &
|
|
|
|
|
|
|
+/usr/bin/chromium --force-device-scale-factor=$scaling_factor --temp-profile --disable-profiles --no-first-run --disable-translate --no-default-browser-check --disable-cache --ignore-certificate-errors --disable-web-security --kiosk $tab_urls &
|
|
|
sleep 10 # Allow time for Chromium to launch
|
|
sleep 10 # Allow time for Chromium to launch
|
|
|
|
|
|
|
|
# Function definitions should be placed before they are called
|
|
# Function definitions should be placed before they are called
|