Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2874

app.conf + launcher does not work on OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 11.0
    • 11.1
    • apisupport - Harness
    • 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

          Activity

            People

              Unassigned Unassigned
              stevenyi Steven Yi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: