How to set WM_CLASS for GNOME?

Alex Orlov ooo_saturn7 at mail.ru
Fri May 27 16:50:02 UTC 2022


Hello,
 
I develop a JavaFX application for Linux. And on my Ubuntu 20 I have a problem. I do `stage.setTitle("Foo");` and
I have a window with title `Foo`, but in Ubuntu top bar I see the name of the class `com.foo.bar.FooApplication`.
 
As I understand I should set correctly WM_CLASS. The only solution I found is this one
https://stackoverflow.com/a/54467323/5057736 
 
However, I work in JPMS and I can’t access com.sun.glass.ui.Application. Could anyone say how I can make my
JavaFx application show "Foo" instead of class name in Ubuntu top bar?
 
--
Best regards, Alex Orlov


More information about the openjfx-discuss mailing list