Steven Yi created NETBEANS-2874:
-----------------------------------
Summary: app.conf + launcher does not work on OSX
Key: NETBEANS-2874
URL: https://issues.apache.org/jira/browse/NETBEANS-2874
Project: NetBeans
Issue Type: Bug
Components: apisupport - Harness
Affects Versions: 11.0
Environment: OSX
Reporter: Steven Yi
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.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists