mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-20 21:08:50 +01:00
vncserver: extract PrepareDefaultsForPassingToXvnc()
This commit is contained in:
parent
b26a20d44d
commit
a44241971e
@ -37,14 +37,7 @@ $desktopName = $opt{'-name'} || "$host:$displayNumber ($ENV{USER})";
|
||||
|
||||
&CreateDotVncDir();
|
||||
|
||||
my %default_opts;
|
||||
my %config;
|
||||
|
||||
# We set some reasonable defaults. Config file settings
|
||||
# override these where present.
|
||||
&SetReasonabeDefaults();
|
||||
&LoadSystemThenUserThenMandatoryConfigs();
|
||||
|
||||
&PrepareDefaultsForPassingToXvnc();
|
||||
&DisableVncAuth();
|
||||
|
||||
$kasmAuthEnabled = 1;
|
||||
@ -1043,3 +1036,13 @@ sub ParseAndProcessCliOptions {
|
||||
&GetLowestAvailableDisplayNumber();
|
||||
&CheckCliOptionsForBeingValid();
|
||||
}
|
||||
|
||||
sub PrepareDefaultsForPassingToXvnc {
|
||||
# We set some reasonable defaults. Config file settings
|
||||
# override these where present.
|
||||
%default_opts;
|
||||
%config;
|
||||
|
||||
&SetReasonabeDefaults();
|
||||
&LoadSystemThenUserThenMandatoryConfigs();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user