vncserver: fix display :0 being ignored on CLI
This commit is contained in:
@@ -1118,8 +1118,11 @@ sub ParseAndProcessCliOptions {
|
||||
ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
|
||||
ProcessCliOptions();
|
||||
CheckGeometryAndDepthAreSensible();
|
||||
$displayNumber = DetectDisplayNumberFromCliArgs() ||
|
||||
GetLowestAvailableDisplayNumber();
|
||||
|
||||
$displayNumber = DetectDisplayNumberFromCliArgs();
|
||||
if (!defined($displayNumber)) {
|
||||
$displayNumber = GetLowestAvailableDisplayNumber();
|
||||
}
|
||||
CheckCliOptionsForBeingValid();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user