mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 09:03:30 +01:00
vncserver: enable local testing
It uses the dir it was ran from to find other binaries. If I run it locally as unix/vncserver, I want to use /usr/bin for other binaries.
This commit is contained in:
parent
fe736c8a2b
commit
6bdcbc32b1
@ -31,6 +31,9 @@ $slashndx = rindex($0, "/");
|
|||||||
if($slashndx>=0) {
|
if($slashndx>=0) {
|
||||||
$exedir = substr($0, 0, $slashndx+1);
|
$exedir = substr($0, 0, $slashndx+1);
|
||||||
}
|
}
|
||||||
|
if ($exedir =~ m!^unix/!) {
|
||||||
|
$exedir = "/usr/bin/";
|
||||||
|
}
|
||||||
|
|
||||||
&SanityCheck();
|
&SanityCheck();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user