1 Commits

Author SHA1 Message Date
d6649fa249 testing _next_display 2020-04-26 23:59:52 -04:00

View File

@@ -1076,10 +1076,19 @@ EOF"
_setDisplayAndPort() {
# Check _display, else DISPLAY, else set to :0 by default
[[ -z $_display ]] && _display="${DISPLAY-":0"}"
if [[ -n $_display ]]; then
_next_display="$_display"
elif [[ -n $DISPLAY ]]; then
_display="${DISPLAY}"
_displaynum="${_display#:}" # strip colon
_displaynum="${_displaynum%.*}" # strip suffix
_next_displaynum=$(( _displaynum + 1 ))
_next_display=":$_next_displaynum"
else
_display=":0"
_next_display=":1"
fi
_port=$(( _displaynum + 5900 ))
}
@@ -1182,10 +1191,6 @@ EOF"
_installPackage tigervnc-server
local _next_displaynum=$(( _displaynum + 1 ))
_next_display=":$_next_displaynum"
#local _service_port=$(( _port + 1 ))
_setVNCPass
if [[ -n $_novncauth ]]; then
@@ -1232,7 +1237,7 @@ EOF"
debug "Running: ${FUNCNAME[0]}"
installPackage xorg-x11-utils
_installPackage xorg-x11-utils
_res=$(xdpyinfo | grep dimensions | awk '{print $2}')
}
_getResolution