vncserver: extract PrepareLoggingAndXvncKillingFramework()
This commit is contained in:
@@ -34,7 +34,7 @@ use Time::HiRes qw (sleep);
|
|||||||
|
|
||||||
&ParseAndProcessCliOptions();
|
&ParseAndProcessCliOptions();
|
||||||
|
|
||||||
&CreateDotVncDir();
|
&PrepareLoggingAndXvncKillingFramework();
|
||||||
&DisableLegacyVncAuth();
|
&DisableLegacyVncAuth();
|
||||||
&SetupXauthorityFile();
|
&SetupXauthorityFile();
|
||||||
|
|
||||||
@@ -1017,8 +1017,6 @@ sub ParseAndProcessCliOptions {
|
|||||||
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
|
$displayNumber = &DetectDisplayNumberFromCliArgs() ||
|
||||||
&GetLowestAvailableDisplayNumber();
|
&GetLowestAvailableDisplayNumber();
|
||||||
&CheckCliOptionsForBeingValid();
|
&CheckCliOptionsForBeingValid();
|
||||||
|
|
||||||
&DefineLogAndPidFilesForDisplayNumber();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub PrepareDefaultsForPassingToXvnc {
|
sub PrepareDefaultsForPassingToXvnc {
|
||||||
@@ -1081,3 +1079,8 @@ sub DefineLogAndPidFilesForDisplayNumber {
|
|||||||
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
$desktopLog = "$vncUserDir/$host:$displayNumber.log";
|
||||||
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub PrepareLoggingAndXvncKillingFramework {
|
||||||
|
&CreateDotVncDir();
|
||||||
|
&DefineLogAndPidFilesForDisplayNumber();
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user