183+ // Otherwise if exe is installed in a bin/ directory, first look for target
184+ // executable in libexec/
185+ (exe_dir.filename() == "bin" && try_exec(fs::path{exe_dir.parent_path()} / "libexec" / fs::PathFromString(args[0]).filename())) ||
186+ // Otherwise look for target executable next to current exe
187+ try_exec(exe_dir / fs::PathFromString(args[0]).filename()) ||
188+ // Otherwise just look on the system path.
b06c7ad0ae91102fe8cdcac6f86d627aace2219b: this is potentially confusing. If I build without gui, I expect build/src/bitcoin gui
to fail. Right now it would launch any bitcoin-qt
in my $PATH
.