Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8272639

jpackaged applications using microphone on mac

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12

      Backports

        Description

        When a Java application using the microphone on macosx is launched for the first time (using the java launcher), the system will pop up a dialog asking user if it is ok for this app to use the microphone. When the same application is built with jpackage and launched by double clicking on the app in finder, no such dialog will be shown and the microphone access will be blocked.
        This has nothing to do with signing the app.
        The java launcher's plist has the following entry, that is not present in the plist of the application as generated by jpackage:
            <key>NSMicrophoneUsageDescription</key>
            <string>The application is requesting access to the microphone.</string>

        Adding this property in src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/Info-lite.plist.template fixes this issue.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                herrick Andy Herrick
                Reporter:
                herrick Andy Herrick
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: