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