Scaling issue on Gnome/Wayland
See original GitHub issueSystem information:
- Operating system: Ubuntu 19.04
- Window manager: GNOME Shell 3.32.2 (Wayland)
- DBeaver version: 6.1.5
- Java version: openjdk version “11.0.4” 2019-07-16
On my system I have 2 monitors:
- Screen 1 (main) is the laptop HiDPI screen. It has a scale factor of 150%, or else I can kiss my eyes goodbye
- Screen 2 is an external HDMI monitor: same resolution as Screen 1, but not HiDPI. Scale factor is 100% I use Wayland because it has support for different, non integral, scale factors on different monitors.
Describe the problem you’re observing:
The problem is the same as #3975, which is supposed to have been resolved 8 months ago.
When launched from .desktop file (or gnome-terminal, which is started from a desktop file) some elements of the application have a 2x zoom.
When launched from guake terminal the zoom is correct, but on Screen 2 the menu items are displayed at the height they would have on Screen 1
If I try launching with --launcher.GTK_version 2
it just says:
The Dbeaver executable launcher no longer supports running with GTK + 2.x. Continuing using GTK+ 3.x.
Include any warning/errors/backtraces from the logs
When launching from gnome terminal I have some warning which are not there in guake
(DBeaver:31883): Gtk-CRITICAL **: 15:31:27.522: gtk_box_gadget_distribute: assertion ‘size >= 0’ failed in GtkScrollbar
Otherwise the output is the same.
If I go to Installation Information -> Configuration there are some differences. From guake:
org.eclipse.swt.internal.deviceZoom=100 org.eclipse.swt.internal.gdk.backend=x11 GDK_BACKEND=x11 GIO_LAUNCHED_DESKTOP_FILE=~/.config/autostart/guake.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3299
From gnome terminal:
org.eclipse.swt.internal.deviceZoom=200 DESKTOP_AUTOSTART_ID=10dd22b96992b46f39156636987999607000000028310019 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/fdb56996_49f2_4f00_8709_7b3d1d338eec GNOME_TERMINAL_SERVICE=:1.225
There are more differences about “Compare Support”, which is [Active] with guake, [Starting] with terminal/launcher, but I don’t think they are related to the issue.
As you can see, launching from gnome terminal/launcher sets the deviceZoom=200 (plus it doesn’t set the X11 GDK backend, but I’m not sure it should).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:19 (3 by maintainers)
Top GitHub Comments
u also can use workaround like this:
export GDK_BACKEND=x11 dbeaver-ce
profit!
or u can change .desktop file like this: sudo vim ‘/usr/share/applications/dbeaver-ce.desktop’ and change exec line: Exec=env GDK_BACKEND=x11 /usr/share/dbeaver-ce/dbeaver
This is a bug in Eclipse platform. https://bugs.eclipse.org/bugs/show_bug.cgi?id=553486 https://bugs.eclipse.org/bugs/show_bug.cgi?id=549504
We can’t fix it from dbeaver side but I’ll try to work closer with Eclipse team.