mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-23 16:43:15 +01:00
vncserver: extract PrepareLoggingAndXvncKillingFramework()
This commit is contained in:
parent
3f23bddb6b
commit
3522000d1f
@ -34,7 +34,7 @@ use Time::HiRes qw (sleep);
|
||||
|
||||
&ParseAndProcessCliOptions();
|
||||
|
||||
&CreateDotVncDir();
|
||||
&PrepareLoggingAndXvncKillingFramework();
|
||||
&DisableLegacyVncAuth();
|
||||
&SetupXauthorityFile();
|
||||
|
||||
@ -1017,8 +1017,6 @@ sub ParseAndProcessCliOptions {
|
||||
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
|
||||
&GetLowestAvailableDisplayNumber();
|
||||
&CheckCliOptionsForBeingValid();
|
||||
|
||||
&DefineLogAndPidFilesForDisplayNumber();
|
||||
}
|
||||
|
||||
sub PrepareDefaultsForPassingToXvnc {
|
||||
@ -1081,3 +1079,8 @@ sub DefineLogAndPidFilesForDisplayNumber {
|
||||
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
||||
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
||||
}
|
||||
|
||||
sub PrepareLoggingAndXvncKillingFramework {
|
||||
&CreateDotVncDir();
|
||||
&DefineLogAndPidFilesForDisplayNumber();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user