midoshouse / ootr-multiworld

An alternative implementation of multiworld for the Ocarina of Time randomizer
https://midos.house/mw
MIT License
9 stars 1 forks source link

Wrong BizHawk path passed to Linux app #33

Closed fenhl closed 1 year ago

fenhl commented 1 year ago

I received the following error report:

error in multiworld-updater version 12.0.5: I/O error at /usr/bin/ExternalTools: Permission denied (os error 13)

Wheel(Io { inner: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }, context: Path("/usr/bin/ExternalTools") })

The user did not install BizHawk directly into /usr/bin, but mono is located there. This is the line of code that determines the path:

https://github.com/midoshouse/ootr-multiworld/blob/34ee8c02467a8f980fd1934ce608c697b486ddc3/crate/multiworld-csharp/src/lib.rs#L321

BizHawk's path may have to be retrieved from std::env::args_os instead. I'll have to do some testing to see if that works.