[Linux][Gnome3] DBeaver has incorrect WM_CLASS
See original GitHub issueHello,
DBeaver on Gnome 3.x sets a generic WM_CLASS="SWT", "SWT"
, as you can see using xprop
on the application window. Being Gnome3 “application-based” [1], this prevents the correct association between windows and the application icon (I’m using a .desktop
file created by me).
A workaround would be setting up the property StartupWMClass="SWT"
in the desktop, but SWT
looks too generic to be useful. A sensible value would be DBeaver
o a more specific DBeaver <Community|Enterprise>
.
Thanks for your work!
[1] https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (10 by maintainers)
Top Results From Across the Web
DBeaver Community | Free Universal Database Tool
DBeaver. Universal Database Tool. Free multi-platform database tool for developers, database administrators, analysts and all people who need to work with ...
Read more >DBeaver failing to open - DBeaver Forum • View topic
Hi All, My DBeaver application unexpectedly stopped opening last week. I am not sure what could have precipitated its crash - one day...
Read more >Connection is read-only. Queries leading to data modificati
When i configure an MySQL or PostgreSQL connection and start SQL editor, when i try execute an INSERT/UPDATE query, the DBeaver throws this ......
Read more >DBeaver 22.3.0
Browser-based image viewer control was fixed (null or invalid images handle). SQL editor: Big SQL files support was improved (automatic ...
Read more >Download | DBeaver Community
DBeaver Community 22.3.0. Released on December 5th 2022 (Milestones). It is free and open source (license). Also you can get it from the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@meden Good point. I’ve fixed DBeaver app init so display name now should be correct (it is
DBeaver
orDBeaver Enterprise
). You can check this in EA version (http://dbeaver.jkiss.org/files/ea/)I looked into this and the fundamental idea seems to me to be the following: The values in the .desktop file like WM_CLASS and StartupWMClass just help the Desktop environment to match up icons and the like. StartupWMClass seems to work like this: The executable mentioned in the field “Exec” is launched and a bouncing startup notification is started - as soon as a window with the mentioned StartupWMClass pops up the bouncing action is stopped. These strings simply have to match up with the values the app itself sets when it initializes its environment. The problem cannot be solved by putting different stuff into the .desktop file, but only by putting something other than the default “WM_CLASS=SWT” in the actual java code. see this stackexchange page that explains how to set that exact property in the java code:
WM_CLASS is supposed to be specific to the the app (not the same for every app that uses the same toolkit) and static (not dynamicly changing for example into the name of the currently opened document). see the X11 docs for that matter