In my Linux Mint installation, I can directly execute a PE executable at the command line, and if it's a .NET/CLI executable, then it will automatically execute it with Mono, and otherwise, it will automatically execute it with Wine.
This works because
binfmt
is configured to run /usr/lib/binfmt-support/run-detectors
for both CLI and Wine executables. This runs a series of detectors configured in /var/lib/binfmts
to determine what type of PE executable it is and execute the appropriate command to run it.
In Manjaro, I have binfmt
, but I don't have run-detectors
. So I guess the first match in /proc/sys/fs/binfmt_misc
wins, and I guess since I installed Wine before I installed Mono, that's the one that wins. That my supposition, anyway. The symptom is that whenever I execute an .exe
file from the command line, it runs Wine, even if it's a .NET executable.
I can't find a package that seems to supply this run-detectors
utility. Is there something like it in the standard or community repositories, or is there some other common way to set this up in the Arch world?
Asked by P Daddy
(385 rep)
Jun 10, 2018, 04:44 PM
Last activity: Nov 30, 2021, 12:08 PM
Last activity: Nov 30, 2021, 12:08 PM