tofi86 / universalJavaApplicationStub

universalJavaApplicationStub - an alternative Application launcher script for Java based macOS Apps that works with both Apple's and Oracle's PList format and supports the old Apple Java 6 as well as all the latest Oracle/OpenJDK/Adopt/Corretto JRE's/JDK's. Plus it supports drag&drop to the Dock icon 🎉
MIT License
356 stars 168 forks source link

On latest macOS, the AppleScript dialogs do not show, blocked by Apple's security measures #77

Open tofi86 opened 4 years ago

tofi86 commented 4 years ago

On latest macOS, the AppleScript dialogs (missing Java, wrong Java, etc.) do not show. They are blocked by Apple's security measures:

grafik

After confirming with "OK", the dialog is shown.

For normal users however, this sounds like the App need access to Files and Documents via "System Events.app", althought the App doesn't.

It's really just the osascript call to show a warning.

Does anyone have an advice whether there's a simple solution to make the AppleScript dialogs work again without this security dialog?

tofi86 commented 4 years ago

Everyone should at least set this property in their Info.plist:

<key>NSAppleEventsUsageDescription</key>
<string>There was an error while launching the application. Please click OK to display a dialog with more information or cancel and view the syslog for details.</string>

The message itself is just a sample...

tofi86 commented 4 years ago

Added to v3.0.5 milestone to add a note about that in README.md.

tofi86 commented 4 years ago

Added to v3.0.5 milestone to add a note about that in README.md.

done.

Sailsman63 commented 3 years ago

Is it known whether this issue affects the compiled binary version of the stub, or is it specific to the shell script?