[yabridge] Warn on non-executable yabridge files

This commit is contained in:
Robbert van der Helm
2023-08-13 14:30:04 +02:00
parent 24b600f9d5
commit 2089c035d0
3 changed files with 26 additions and 7 deletions
+4 -1
View File
@@ -304,7 +304,10 @@ impl Config {
};
// `yabridge-host.exe` should either be in the search path, or it should be in
// `~/.local/share/yabridge` (which was appended to the `$PATH` at the start of `main()`)
// `~/.local/share/yabridge` (which was appended to the `$PATH` at the start of `main()`).
// `which()` also ensures that the files are executable. Some methods of extracting and
// copying archive strip the executable bit, in which case they will show up as not found
// here.
let yabridge_host_exe = which(YABRIDGE_HOST_EXE_NAME).ok();
let yabridge_host_exe_so = yabridge_host_exe
.as_ref()