mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-22 05:49:07 +01:00
vncserver: refactor
This commit is contained in:
parent
9a6ea64e0f
commit
acb9793841
@ -32,8 +32,6 @@ use Time::HiRes qw (sleep);
|
|||||||
&SetGlobalVariables();
|
&SetGlobalVariables();
|
||||||
|
|
||||||
&ParseAndProcessCliOptions();
|
&ParseAndProcessCliOptions();
|
||||||
$vncPort = 5900 + $displayNumber;
|
|
||||||
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
|
||||||
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
||||||
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
||||||
|
|
||||||
@ -1043,6 +1041,9 @@ sub PrepareDefaultsForPassingToXvnc {
|
|||||||
%default_opts;
|
%default_opts;
|
||||||
%config;
|
%config;
|
||||||
|
|
||||||
|
$vncPort = 5900 + $displayNumber;
|
||||||
|
$desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
||||||
|
|
||||||
&SetReasonabeDefaults();
|
&SetReasonabeDefaults();
|
||||||
&LoadSystemThenUserThenMandatoryConfigs();
|
&LoadSystemThenUserThenMandatoryConfigs();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user