-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi Team,
I have a question about running NGFF-Converter in ubuntu docker container.
I built a docker container for NGFF-Converter, and run it from source.
When the conversion job starts I get Exception
java.lang.UnsupportedOperationException: Taskbar API is not supported on the current platform at java.desktop/java.awt.Taskbar.getTaskbar(Taskbar.java:217) at com.glencoesoftware.convert.PrimaryController.updateProgress(PrimaryController.java:762) at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:290) at java.base/java.lang.Thread.run(Thread.java:840)
To make it work, I patched the code in PrimaryController.java by adding a try catch to the Taskbar code in updateProgress function.
I also modified the code in MultiButtonTableCell.java to use xdg-open insdead of awt API, such as Desktop, Taskbar etc, just to make it work in container.
My question is: Is this the correct way to work around this exception, or is there anything I did wrong?
Thank you very much