[yabridgectl] Remove explicit fallback

This was already handled by appending this to the `$PATH`.
This commit is contained in:
Robbert van der Helm
2021-07-14 15:10:03 +02:00
parent 9b70d4b6d6
commit 784593df5c
+3 -7
View File
@@ -287,16 +287,12 @@ impl Config {
};
// `yabridge-host.exe` should either be in the search path, or it should be in
// `~/.local/share/yabridge`
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME)
.ok()
.or_else(|| xdg_dirs.find_data_file(YABRIDGE_HOST_EXE_NAME));
// `~/.local/share/yabridge` (which was appended to the `$PATH` at the start of `main()`)
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok();
let yabridge_host_exe_so = yabridge_host_exe
.as_ref()
.map(|path| path.with_extension("exe.so"));
let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME)
.ok()
.or_else(|| xdg_dirs.find_data_file(YABRIDGE_HOST_32_EXE_NAME));
let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME).ok();
let yabridge_host_32_exe_so = yabridge_host_32_exe
.as_ref()
.map(|path| path.with_extension("exe.so"));