vncserver: refactor
This commit is contained in:
@@ -35,9 +35,6 @@
|
|||||||
|
|
||||||
&CreateDotVncDir();
|
&CreateDotVncDir();
|
||||||
|
|
||||||
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
|
|
||||||
&GetLowestAvailableDisplayNumber();
|
|
||||||
&CheckCliOptionsForBeingValid();
|
|
||||||
$vncPort = 5900 + $displayNumber;
|
$vncPort = 5900 + $displayNumber;
|
||||||
|
|
||||||
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
||||||
@@ -1045,4 +1042,7 @@ sub ParseAndProcessCliOptions {
|
|||||||
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
|
&ParseOptionsAndRemoveMatchesFromARGV(@supportedOptions);
|
||||||
&ProcessCliOptions();
|
&ProcessCliOptions();
|
||||||
&CheckGeometryAndDepthAreSensible();
|
&CheckGeometryAndDepthAreSensible();
|
||||||
|
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
|
||||||
|
&GetLowestAvailableDisplayNumber();
|
||||||
|
&CheckCliOptionsForBeingValid();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user