Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.0
-
None
-
OSX
Description
Building an NB platform application using Ant with Netbeans 11.0, I found that the generated .app when using build-mac does not run correctly. It appears to me that the cause is that the application's executable script (copied from harness) has this code:
case "`uname`" in
Darwin*)
userdir="${default_mac_userdir}"
;;
*)
userdir="${default_userdir}"
;;
esac
while the app.conf that is copied from the harness only has default_userdir defined:
default_userdir="${DEFAULT_USERDIR_ROOT}/dev"
The userdir gets set to the $PWD if launched from commandline, but I think set to "" when the .app is double-clicked.
I modified my build to append:
default_mac_userdir="${DEFAULT_USERDIR_ROOT}/dev"
to the copied app.conf and that seems to work, but I am unsure what the intention of the default_mac_userdir is and if that conditional code shouldn't be removed from the default executable shell script for platform apps.
Attachments
Issue Links
- relates to
-
NETBEANS-2361 app.conf has typo preventing RCP app loading on Linux
- Closed