mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-28 02:53:41 +01:00
vncserver: refactor
This commit is contained in:
parent
bc54f75226
commit
84764bac80
@ -111,7 +111,7 @@ $cmd = &ConstructXvncCmd();
|
||||
|
||||
# Run $cmd and record the process ID.
|
||||
$pidFile = "$vncUserDir/$host:$displayNumber.pid";
|
||||
&StartXAndRecordPID();
|
||||
&StartXvncAndRecordPID();
|
||||
|
||||
# Give Xvnc a chance to start up
|
||||
sleep(3);
|
||||
@ -924,7 +924,7 @@ sub ConstructXvncCmd {
|
||||
return $cmd;
|
||||
}
|
||||
|
||||
sub StartXAndRecordPID {
|
||||
sub StartXvncAndRecordPID {
|
||||
system("$cmd & echo \$! >$pidFile");
|
||||
}
|
||||
|
||||
@ -943,7 +943,7 @@ sub IfXvncDidntStartTryFixingFontPathAndStartXvncAgain {
|
||||
}
|
||||
$cmd =~ s@-fp [^ ]+@@;
|
||||
$cmd .= " -fp $defFontPath" if ($defFontPath);
|
||||
&StartXAndRecordPID();
|
||||
&StartXvncAndRecordPID();
|
||||
sleep(3);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user