mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 00:53:39 +01:00
vncserver: refactor
This commit is contained in:
parent
b330856d67
commit
fc732f3603
@ -405,7 +405,7 @@ if (! $skipxstartup) {
|
||||
warn "Log file is $desktopLog\n\n";
|
||||
|
||||
if (! $skipxstartup) {
|
||||
&DetectDisplay();
|
||||
&DetectAndExportDisplay();
|
||||
$ENV{VNCDESKTOP}= $desktopName;
|
||||
|
||||
&RunXstartup();
|
||||
@ -890,7 +890,7 @@ sub CreateXstartup
|
||||
chmod 0755, "$xstartupFile";
|
||||
}
|
||||
|
||||
sub DetectDisplay {
|
||||
sub DetectAndExportDisplay {
|
||||
# If the unix domain socket exists then use that (DISPLAY=:n) otherwise use
|
||||
# TCP (DISPLAY=host:n)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user