Hi,

as you may know, any native code in Android GUI applications must be
delivered as a shared object.

So, there is no main() and there is no executable. There is also no bundle
that the binary can be delivered in, and we might only fake HOME by
providing the application's data directory. (I temporarily use /.)

Based on previous discussions on this list, I've thrown together a fake
call to GSInitializeProcess():

    const char* argv[1] = { "gnustep-app" };
    const char* env[3] = { "USER=android", "HOME=/", NULL };
    GSInitializeProcess(1, argv, env);

Sadly:

    I/gnustep-app( 6739): 2014-06-12 10:25:35.191 gnustep-app[6739]
NSBundle.m:396  Assertion failed in NSString *GSPrivateExecutablePath().
 NSInternalInconsistencyException

Any existing approach to dealing with there-is-no-executable situation?
-- 
Ivan Vučica
[email protected]
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to