mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-08 15:08:47 +01:00
vncserver: add -select-de
This commit is contained in:
parent
6287114cbf
commit
dbd54fe35c
@ -728,9 +728,25 @@ sub AskUserToChooseDeOrManualXstartup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&ForgetSelectedDe();
|
&ForgetSelectedDe();
|
||||||
|
|
||||||
|
$selectDeCmd = &ConstructSelectDeCmd();
|
||||||
system($selectDeCmd) == 0 || die("Failed to execute $selectDeCmd\n");
|
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 {
|
sub ForgetSelectedDe {
|
||||||
unlink $de_was_selected_file;
|
unlink $de_was_selected_file;
|
||||||
}
|
}
|
||||||
@ -1018,7 +1034,7 @@ sub DefineFilePathsAndStuff {
|
|||||||
$vncUserConfig = "$vncUserDir/config";
|
$vncUserConfig = "$vncUserDir/config";
|
||||||
$kasmPasswdFile = "$ENV{HOME}/.kasmpasswd";
|
$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";
|
$de_was_selected_file="$ENV{HOME}/.vnc/.de-was-selected";
|
||||||
|
|
||||||
$vncSystemConfigDir = "/etc/kasmvnc";
|
$vncSystemConfigDir = "/etc/kasmvnc";
|
||||||
|
Loading…
Reference in New Issue
Block a user