AppBundler: wrong working directory

Greg Brown greg.x.brown at
Wed Feb 29 07:28:36 PST 2012

>> <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"/>

More information about the macosx-port-dev mailing list