vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-09 23:24:30 +12:00
parent 649868241c
commit 895f8bc10d

View File

@ -35,9 +35,6 @@
&CreateDotVncDir();
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
&GetLowestAvailableDisplayNumber();
&CheckCliOptionsForBeingValid();
$vncPort = 5900 + $displayNumber;
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
@ -1045,4 +1042,7 @@ sub ParseAndProcessCliOptions {
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
&ProcessCliOptions();
&CheckGeometryAndDepthAreSensible();
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
&GetLowestAvailableDisplayNumber();
&CheckCliOptionsForBeingValid();
}