mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-05 21:48:49 +01:00
vncserver: refactor
This commit is contained in:
parent
69a2f9a13b
commit
c99d82fd8b
@ -124,23 +124,14 @@ unless (&IsXvncRunning()) {
|
||||
|
||||
warn "\nNew '$desktopName' desktop is $host:$displayNumber\n";
|
||||
warn "\nUsername: $vncUserName\n\n";
|
||||
warn "Log file is $desktopLog\n\n";
|
||||
|
||||
if (! $skipxstartup) {
|
||||
&CreateXstartupIfNeeded();
|
||||
}
|
||||
|
||||
&CreateUserConfigIfNeeded();
|
||||
|
||||
# Run the X startup script.
|
||||
if (! $skipxstartup) {
|
||||
warn "Starting applications specified in $xstartupFile\n";
|
||||
}
|
||||
warn "Log file is $desktopLog\n\n";
|
||||
|
||||
if (! $skipxstartup) {
|
||||
&DetectAndExportDisplay();
|
||||
$ENV{VNCDESKTOP}= $desktopName;
|
||||
|
||||
&RunXstartup();
|
||||
}
|
||||
|
||||
@ -663,6 +654,10 @@ sub DetectAndExportDisplay {
|
||||
}
|
||||
|
||||
sub RunXstartup {
|
||||
warn "Starting applications specified in $xstartupFile\n";
|
||||
&DetectAndExportDisplay();
|
||||
$ENV{VNCDESKTOP}= $desktopName;
|
||||
|
||||
if ($opt{'-fg'}) {
|
||||
if (! $skipxstartup) {
|
||||
system("$xstartupFile >> " . "edString($desktopLog) . " 2>&1");
|
||||
|
Loading…
Reference in New Issue
Block a user