mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-23 06:18:59 +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 "\nNew '$desktopName' desktop is $host:$displayNumber\n";
|
||||||
warn "\nUsername: $vncUserName\n\n";
|
warn "\nUsername: $vncUserName\n\n";
|
||||||
|
warn "Log file is $desktopLog\n\n";
|
||||||
|
|
||||||
if (! $skipxstartup) {
|
if (! $skipxstartup) {
|
||||||
&CreateXstartupIfNeeded();
|
&CreateXstartupIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
&CreateUserConfigIfNeeded();
|
&CreateUserConfigIfNeeded();
|
||||||
|
|
||||||
# Run the X startup script.
|
|
||||||
if (! $skipxstartup) {
|
if (! $skipxstartup) {
|
||||||
warn "Starting applications specified in $xstartupFile\n";
|
|
||||||
}
|
|
||||||
warn "Log file is $desktopLog\n\n";
|
|
||||||
|
|
||||||
if (! $skipxstartup) {
|
|
||||||
&DetectAndExportDisplay();
|
|
||||||
$ENV{VNCDESKTOP}= $desktopName;
|
|
||||||
|
|
||||||
&RunXstartup();
|
&RunXstartup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -663,6 +654,10 @@ sub DetectAndExportDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub RunXstartup {
|
sub RunXstartup {
|
||||||
|
warn "Starting applications specified in $xstartupFile\n";
|
||||||
|
&DetectAndExportDisplay();
|
||||||
|
$ENV{VNCDESKTOP}= $desktopName;
|
||||||
|
|
||||||
if ($opt{'-fg'}) {
|
if ($opt{'-fg'}) {
|
||||||
if (! $skipxstartup) {
|
if (! $skipxstartup) {
|
||||||
system("$xstartupFile >> " . "edString($desktopLog) . " 2>&1");
|
system("$xstartupFile >> " . "edString($desktopLog) . " 2>&1");
|
||||||
|
Loading…
Reference in New Issue
Block a user