You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Oyarzun (JIRA)" <ji...@apache.org> on 2019/08/14 13:16:00 UTC

[jira] [Closed] (NETBEANS-2874) app.conf + launcher does not work on OSX

     [ https://issues.apache.org/jira/browse/NETBEANS-2874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Oyarzun closed NETBEANS-2874.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 11.1

This was fixed with [https://github.com/apache/netbeans/pull/1203]

> 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
>            Priority: Major
>             Fix For: 11.1
>
>
> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists