mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-07 14:39:48 +01:00
vncserver: add -select-de
This commit is contained in:
parent
6287114cbf
commit
dbd54fe35c
@ -728,9 +728,25 @@ sub AskUserToChooseDeOrManualXstartup {
|
||||
}
|
||||
|
||||
&ForgetSelectedDe();
|
||||
|
||||
$selectDeCmd = &ConstructSelectDeCmd();
|
||||
system($selectDeCmd) == 0 || die("Failed to execute $selectDeCmd\n");
|
||||
}
|
||||
|
||||
sub ConstructSelectDeCmd {
|
||||
my $cmd = "$selectDeBin";
|
||||
my $specifiedDe = $opt{'-select-de'};
|
||||
|
||||
if ($specifiedDe) {
|
||||
$cmd .= " --select-de";
|
||||
if ($specifiedDe != 1) {
|
||||
$cmd .= " $specifiedDe";
|
||||
}
|
||||
}
|
||||
|
||||
$cmd;
|
||||
}
|
||||
|
||||
sub ForgetSelectedDe {
|
||||
unlink $de_was_selected_file;
|
||||
}
|
||||
@ -1018,7 +1034,7 @@ sub DefineFilePathsAndStuff {
|
||||
$vncUserConfig = "$vncUserDir/config";
|
||||
$kasmPasswdFile = "$ENV{HOME}/.kasmpasswd";
|
||||
|
||||
$selectDeCmd = "/src/builder/startup/deb/select-de.sh";
|
||||
$selectDeBin = "/src/builder/startup/deb/select-de.sh";
|
||||
$de_was_selected_file="$ENV{HOME}/.vnc/.de-was-selected";
|
||||
|
||||
$vncSystemConfigDir = "/etc/kasmvnc";
|
||||
|
Loading…
Reference in New Issue
Block a user