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.
KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent fe736c8a2b
commit 6bdcbc32b1

@ -31,6 +31,9 @@ $slashndx = rindex($0, "/");
if($slashndx>=0) {
$exedir = substr($0, 0, $slashndx+1);
}
if ($exedir =~ m!^unix/!) {
$exedir = "/usr/bin/";
}
&SanityCheck();

Loading…
Cancel
Save