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:
Dmitry Maksyoma 2021-07-25 23:07:29 +12:00
parent fe736c8a2b
commit 6bdcbc32b1

View File

@ -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();