vncserver: refactor

KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent 7e854294a2
commit c6f7d2eff0

@ -28,7 +28,7 @@
use v5.10;
use Time::HiRes qw (sleep);
&DetectEnvironment();
&EnsureWeCanRunInThisEnvironment();
&DefineFilePathsAndStuff();
@ -967,10 +967,9 @@ sub PrintKasmUsers {
warn "\n";
}
sub DetectEnvironment {
sub EnsureWeCanRunInThisEnvironment {
$exedir = &DetectBinariesDir();
&CheckRequiredDependenciesArePresent();
&DetectFontPath();
}
sub DefineFilePathsAndStuff {
@ -1005,6 +1004,8 @@ sub DefineFilePathsAndStuff {
"# alwaysshared\n");
chop($host = `uname -n`);
&DetectFontPath();
}
sub ParseAndProcessCliOptions {

Loading…
Cancel
Save