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:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user