Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Closes silently given CFBundleIconFile without ".icns" extension #75

@symbioquine

Description

@symbioquine

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

Both of the following CFBundleIconFile configurations seem to be valid in one's Info.plist file - shows the icon in Finder and such correctly.

<key>CFBundleIconFile</key>    <string>icon.icns</string>
<key>CFBundleIconFile</key>    <string>icon</string>

However, the later - without the ".icns" extension - causes universalJavaApplicationStub to silently exit instead of showing the expected dialog.

Steps to reproduce the issue/enhancement:

  1. Take an otherwise working app bundle which uses universalJavaApplicationStub and change the CFBundleIconFile key in its Info.plist file to remove the ".icns" extension.
  2. Try launching the bundle under conditions that should show a dialog - such as the required Java version not being available.

What is the expected behavior?

One or more of the following;

  • universalJavaApplicationStub should still show dialogs - perhaps without the icon
  • universalJavaApplicationStub should explicitly complain in the syslog if the icon is specified in an invalid way
  • The documentation should explicitly call out this gotcha since it is unintuitive and moderately hard to troubleshoot

What 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:

  • universalJavaApplicationStub version: 3.0.4
  • Mac OS version: MacOSX Mojave 10.14
  • Java version(s): N/A - Current branch of testing uses OS image prior to installation of any JVM

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

N/A

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions