vncserver: remove obsolete code

KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent 6e0d272946
commit 1e21e09754

@ -625,13 +625,6 @@ sub DetectBinariesDir {
return $result; return $result;
} }
sub DetectUserName {
my $vncUserName = `id -u -n`;
$vncUserName =~ s/^\s+|\s+$//g;
return $vncUserName;
}
sub DetectFontPath { sub DetectFontPath {
if (-d "/etc/X11/fontpath.d") { if (-d "/etc/X11/fontpath.d") {
$fontPath = "catalogue:/etc/X11/fontpath.d"; $fontPath = "catalogue:/etc/X11/fontpath.d";
@ -1000,7 +993,6 @@ sub SetGlobalVariables {
$vncUserDir = "$ENV{HOME}/.vnc"; $vncUserDir = "$ENV{HOME}/.vnc";
$vncUserConfig = "$vncUserDir/config"; $vncUserConfig = "$vncUserDir/config";
$vncUserName = &DetectUserName();
$kasmPasswdFile = "$ENV{HOME}/.kasmpasswd"; $kasmPasswdFile = "$ENV{HOME}/.kasmpasswd";
$vncSystemConfigDir = "/etc/kasmvnc"; $vncSystemConfigDir = "/etc/kasmvnc";
@ -1020,8 +1012,7 @@ sub SetGlobalVariables {
"# desktop=sandbox\n". "# desktop=sandbox\n".
"# geometry=2000x1200\n". "# geometry=2000x1200\n".
"# localhost\n". "# localhost\n".
"# alwaysshared\n". "# alwaysshared\n");
"username=$vncUserName");
chop($host = `uname -n`); chop($host = `uname -n`);
} }

Loading…
Cancel
Save