mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-07 14:39:48 +01:00
vncserver: refactor
This commit is contained in:
parent
649868241c
commit
895f8bc10d
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user