mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 01:24:04 +01:00
Merge branch 'bugfix/KASM-5006-improve-xstartup-debug-output' into 'master'
vncserver: more debug output for xstartup Closes KASM-5006 See merge request kasm-technologies/internal/KasmVNC!113
This commit is contained in:
commit
7350b12b3d
@ -198,6 +198,7 @@ generate_xstartup() {
|
||||
|
||||
cat <<-SCRIPT > "$xstartup_script"
|
||||
#!/bin/sh
|
||||
set -x
|
||||
$de_cmd
|
||||
SCRIPT
|
||||
chmod +x "$xstartup_script"
|
||||
|
@ -669,9 +669,10 @@ sub RunXstartup {
|
||||
DetectAndExportDisplay();
|
||||
$ENV{VNCDESKTOP}= $desktopName;
|
||||
|
||||
my $xstartupCmd = "{ echo 'Running $xstartupFile'; $xstartupFile; }";
|
||||
if ($opt{'-fg'}) {
|
||||
if (! $skipxstartup) {
|
||||
system("$xstartupFile >> " . quotedString($desktopLog) . " 2>&1");
|
||||
system("$xstartupCmd >> " . quotedString($desktopLog) . " 2>&1");
|
||||
}
|
||||
if (IsXvncRunning()) {
|
||||
$opt{'-kill'} = ':'.$displayNumber;
|
||||
@ -680,12 +681,12 @@ sub RunXstartup {
|
||||
} else {
|
||||
if ($opt{'-autokill'}) {
|
||||
if (! $skipxstartup) {
|
||||
system("($xstartupFile; $0 -kill :$displayNumber) >> "
|
||||
system("($xstartupCmd; $0 -kill :$displayNumber) >> "
|
||||
. quotedString($desktopLog) . " 2>&1 &");
|
||||
}
|
||||
} else {
|
||||
if (! $skipxstartup) {
|
||||
system("$xstartupFile >> " . quotedString($desktopLog)
|
||||
system("$xstartupCmd >> " . quotedString($desktopLog)
|
||||
. " 2>&1 &");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user