question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Linux][Gnome3] DBeaver has incorrect WM_CLASS

See original GitHub issue

Hello,

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:closed
  • Created 7 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
serge-ridercommented, May 9, 2017

@meden Good point. I’ve fixed DBeaver app init so display name now should be correct (it is DBeaver or DBeaver Enterprise). You can check this in EA version (http://dbeaver.jkiss.org/files/ea/)

1reaction
michimartinicommented, May 4, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found