5 Dec
2004
5 Dec
'04
6:20 p.m.
It's not that easy, that approach doesn't take C++ static constructors into account, nor the address space manipulation that takes effect. It is possible to allow people to start winelib apps like "./foo" but hardly a big deal. You need to have a program which does: (pseudocode) int main(int argc, char *argv[]) { self = readlink("/proc/self/exe"); exec("wine " + self, argc, argv); } "main()" may already be taken, so you might need to intercept stuff at the ELF bootstrap level. thanks -mike