java -Dappbase=https://samskivert.com/code/testapp -jar target/testapp/getdown-new.jar "$HOME/Library/Application Support/TestApp"
--
You received this message because you are subscribed to the Google Groups "OOO Libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ooo-libs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is the app installed in /Applications or are you running the app from the read-only disk image that is often created for installing Mac apps? In the latter case, the expectation is usually that the user has to drag the application into their ~/Applications or /Applications folder.
I agree that it would be nice to allow the app to be run directly from a read-only disk image, which is technically possible if you ship a disk image with a fully downloaded and validated application.
The alternative of having the app download and install resources somewhere outside the .app dir has substantial drawbacks in my opinion. The user may just run your app (from the disk image) to try it out, and it then installs a bunch of stuff on their computer that they don't know about, and then they decide not to use it so they throw away the disk image, but all the downloaded resources remain wherever you installed them, unassociated with the app that installed them.
It would be nice if the OS gave us a better way to solve this problem (like per app data directories that are automatically deleted if the app is uninstalled), but without such a feature, I think it's worth trying to keep everything in the .app directory if possible.Anyhow, all that said, you can use the "auto-create the app dir" mechanism to have the application stub installed by the .pkg file run Getdown with an appdir that is outside the .app directory (like ~/Library/Application Support/YourApp). For example, if you run the getdown testapp like so:java -Dappbase=https://samskivert.com/code/testapp -jar target/testapp/getdown-new.jar "$HOME/Library/Application Support/TestApp"
That will auto-create a directory in Application Support and download, install and run the testapp in there. So something like this can probably be used to work around your issue, at the price of having your app leaving a bunch of cruft on the user's machine that will never get deleted.