[Gtk-sharp-list] kernel support.
Dag Wieers
dag@wieers.com
Tue, 17 Jun 2003 18:51:44 +0200 (CEST)
On 16 Jun 2003, George Farris wrote:
> Does anyone know what the plans are for kernel support of mono
> binaries? Right now a binary mono file shows as:
>
> MS Windows PE 32-bit Intel 80386 console executable
>
> This of course, is totally unacceptable on a Linux machine. I want to
> be able to run my binaries directly instead of through a shell script.
This issue is dear to me too.
The Debian Mono page indicates there is a workaround. A third binary that
does a more conclusive check and then starts either mono or wine.
Which would mean that the kernel binfmt support has short-comings that can
only be overcome by doing it in userspace. My first thought is that the
binfmt_misc kernel-support should be fixed to be more useful.
Since there will not be a good solution soon, I would propose the
following standard (and I took the liberty to add it to the Developer FAQ
page in the Wiki already).
The proposal is to have a shell wrapper with the same name as the .Net
binary, with the '.exe' part and would consist of the following 2 lines:
#!/bin/sh
exec mono "$0".exe $@
Ofcourse we could verify some things in this script (check if mono can be
called, if the executable exists, etc...) But I would keep it as simple as
possible, I've tested the output in various circumstances and the
error-output was in each case very clear about the problem.
Kind regards,
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]