mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
[yabridgectl] Remove explicit fallback
This was already handled by appending this to the `$PATH`.
This commit is contained in:
@@ -287,16 +287,12 @@ impl Config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// `yabridge-host.exe` should either be in the search path, or it should be in
|
// `yabridge-host.exe` should either be in the search path, or it should be in
|
||||||
// `~/.local/share/yabridge`
|
// `~/.local/share/yabridge` (which was appended to the `$PATH` at the start of `main()`)
|
||||||
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME)
|
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok();
|
||||||
.ok()
|
|
||||||
.or_else(|| xdg_dirs.find_data_file(YABRIDGE_HOST_EXE_NAME));
|
|
||||||
let yabridge_host_exe_so = yabridge_host_exe
|
let yabridge_host_exe_so = yabridge_host_exe
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|path| path.with_extension("exe.so"));
|
.map(|path| path.with_extension("exe.so"));
|
||||||
let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME)
|
let yabridge_host_32_exe = which(YABRIDGE_HOST_32_EXE_NAME).ok();
|
||||||
.ok()
|
|
||||||
.or_else(|| xdg_dirs.find_data_file(YABRIDGE_HOST_32_EXE_NAME));
|
|
||||||
let yabridge_host_32_exe_so = yabridge_host_32_exe
|
let yabridge_host_32_exe_so = yabridge_host_32_exe
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|path| path.with_extension("exe.so"));
|
.map(|path| path.with_extension("exe.so"));
|
||||||
|
|||||||
Reference in New Issue
Block a user