Dansoftowner / Restart4j

Library for restarting your java application
Apache License 2.0
16 stars 2 forks source link

Restart on macOS loses app icon #4

Open vewert opened 1 year ago

vewert commented 1 year ago

I am trying out RestartJ with a cross-platform Java Swing Desktop Application I develop. Currently, I support Windows and macOS, with experimental support for Linux. I use jpackage to create:

Currently it seems to work fine for Windows, but on macOS, it re-starts fine, but after the re-starting, the Dock icon is no longer my application icon, but a generic looking 'terminal' icon.

Is there any way to make it so after re-starting, the app keeps the correct Dock icon?

Environment: Java: jdk 17.0.7 macOS: Ventura 13.4 (Apple M1 chip)