-
Notifications
You must be signed in to change notification settings - Fork 168
Closes silently given CFBundleIconFile without ".icns" extension #75
Comments
Thanks for the report. Looks legit. I will have a closer look at the weekend. |
This seems to be an issue with Oracle's Java. In my tests, it works well without the file type extension in AdoptOpenJDK 11 for example, but fails as described in Oralce JDK 8 or 9. So technically it's not an issue with this launcher script. I could add a function which add's @symbioquine would you agree if I close this as |
@tofi86 That conclusion is a little surprising to me since I was testing under conditions where no JVM/JRE has ever been installed. I'd assumed this behavior is an artifact of how this tool uses AppleScript for displaying dialogs prior to invoking Java. Would you be willing to share your test methodology which shows the behavior to be specific to a particular Java distribution? |
Oh, so I experienced and investigated another issue while testing this and misunderstood your report. Sorry for that. I read too quickly and interpreted "dialog" as your application GUI. So I changed the Using AdoptOpen JDK this worked fine and the GUI was displayed. Then I switched to Oracle JDK and the GUI didn't show anymore. At this point I was sure I hit your issue and stopped investigating. I will have another look in the next couple of days. Sorry for the delay. |
check for undefined icons or icon names without .icns extension and prepare an osascript statement for those cases when the icon can be shown in the dialog
Okay, I tested this again, and I was able to reproduce the issue. I pushed a fix to the |
Just out of curiosity: do you also get a system security events dialog before the AppleScript dialog? => #77 |
To be a bit more verbose: The script now checks for the |
Thanks! Confirming the updated version appears to have solved the problem for me - the dialog works regardless of whether the .icns extension is specified.
I'm not sure. I wasn't seeing it in my latest testing this evening, but I think I've seen it in the past. |
Perfect, thanks for testing! |
I'm submitting a…
Short description of the issue/suggestion:
Both of the following
CFBundleIconFile
configurations seem to be valid in one'sInfo.plist
file - shows the icon in Finder and such correctly.However, the later - without the ".icns" extension - causes
universalJavaApplicationStub
to silently exit instead of showing the expected dialog.Steps to reproduce the issue/enhancement:
universalJavaApplicationStub
and change theCFBundleIconFile
key in itsInfo.plist
file to remove the ".icns" extension.What is the expected behavior?
One or more of the following;
universalJavaApplicationStub
should still show dialogs - perhaps without the iconuniversalJavaApplicationStub
should explicitly complain in the syslog if the icon is specified in an invalid wayWhat is the current behavior?
universalJavaApplicationStub
silently exits instead of showing the expected dialog.Do you have screenshots, GIFs, demos or samples which demonstrate the problem or enhancement?
N/A
What is the motivation / use case for changing the behavior?
Make onboarding with this utility more fool-proof.
Please tell us about your environment:
Other information (e.g. related issues, suggestions how to fix, links for us to have context)
N/A
The text was updated successfully, but these errors were encountered: