1 Révisions

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

Voir le fichier

@@ -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
_displaynum="${_display#:}" # strip colon
_displaynum="${_displaynum%.*}" # strip suffix
_port=$(( _displaynum + 5900 ))
}
@@ -1182,19 +1191,6 @@ EOF"
_installPackage tigervnc-server
_getNextAvailableDisplay() {
:
}
_getNextAvailableDisplay
_next_displaynum=$(( _displaynum + 1 ))
_next_display=":$_next_displaynum"
#local _service_port=$(( _port + 1 ))
[[ -n $_debug ]] && echo "_next_display: $_next_display"
_setVNCPass
if [[ -n $_novncauth ]]; then