diff --git a/installJRMC b/installJRMC index e4bf7c3..0730b48 100755 --- a/installJRMC +++ b/installJRMC @@ -1182,10 +1182,19 @@ EOF" _installPackage tigervnc-server - local _next_displaynum=$(( _displaynum + 1 )) + + _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 @@ -1232,7 +1241,7 @@ EOF" debug "Running: ${FUNCNAME[0]}" - installPackage xorg-x11-utils + _installPackage xorg-x11-utils _res=$(xdpyinfo | grep dimensions | awk '{print $2}') } _getResolution