AppBundler: wrong working directory

Mike Swingler swingler at
Wed Feb 29 07:46:59 PST 2012

On Feb 29, 2012, at 7:28 AM, Greg Brown wrote:

>>> <option value="-Duser.dir=…"/>
>>> I haven't tried it myself but I would be curious to know if it works for you.
>> Greg, how could you get the user.dir to point inside the app bundle at runtime?
> Good point. Though if we do have the new launcher set the working directory to the bundle root at startup, then you could potentially do this to replicate the behavior of the Java 6 launcher:
> <option value="-Duser.dir=Contents/Resources"/>

That is less onerous for developers to adopt, but it's quite a subtle thing which is not self-documenting.

I'd still advocate for macro expansion (and I'd be happy to provide a diff) if that's a direction you'd support as well.

Mike Swingler
Apple Inc.

More information about the macosx-port-dev mailing list