mirror of https://github.com/siomiz/chrome
VNC password handling; chrome --start-maximized
parent
cd0703e034
commit
ef44089d0f
@ -1,2 +1,2 @@
|
||||
rm -rf /home/chrome/.config/chrome-remote-desktop/chrome-profile/Singleton*
|
||||
exec /opt/google/chrome/chrome --no-sandbox --window-position=0,0 --window-size=1024,768 --force-device-scale-factor=1
|
||||
exec /opt/google/chrome/chrome --no-sandbox --start-maximized --force-device-scale-factor=1 --use-system-title-bar
|
||||
|
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# VNC default no password
|
||||
export X11VNC_AUTH="-nopw"
|
||||
|
||||
# look for VNC password file in order (first match is used)
|
||||
passwd_files=(
|
||||
/home/chrome/.vnc/passwd
|
||||
/run/secrets/vncpasswd
|
||||
)
|
||||
|
||||
for passwd_file in ${passwd_files[@]}; do
|
||||
if [[ -f ${passwd_file} ]]; then
|
||||
export X11VNC_AUTH="-rfbauth ${passwd_file}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# override above if VNC_PASSWORD env var is set (insecure!)
|
||||
if [[ "$VNC_PASSWORD" != "" ]]; then
|
||||
export X11VNC_AUTH="-passwd $VNC_PASSWORD"
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue