https://bugs.kde.org/show_bug.cgi?id=497714

--- Comment #7 from Cristiano Guadagnino <crigu...@gmail.com> ---
Hi TraceyC!
I have a new 4K monitor, and I'm using 150% scaling.
Unfortunately not all applications behave correctly. Especially Java
applications, but some GTK applications too.
I have also experimented with the settings for X11 apps, setting "Apply scaling
themselves" or "Scaled by the system", but whatever I set it to it fixes some
apps and breaks some other apps.
At last, I settled to "Scaled by the system" and used some environment
variables to fix the applications that behave badly.

For example, LibreOffice behaves bad. I am able to fix it by using
QT_FONT_DPI=192 as environment variable.
So I have for e.g. LibreOffice Writer, this line in the .desktop file: Exec=env
QT_FONT_DPI=192 libreoffice --writer %U
But when I open the settings for the launcher, the Environment Variables field
is empty.
When I launch it, every other boot it behaves correctly. The other times, the
fonts are so tiny that it is unusable.

Another example is DBeaver (a software for working with databases written in
Java).
I can make it work correctly by setting the variables GDK_BACKEND=x11 and
GDK_DPI_SCALE=1.5.
Its .desktop file contains this line: Exec=env GDK_BACKEND=x11
GDK_DPI_SCALE=1.5 /usr/share/dbeaver-ce/dbeaver
But when I open the settings for the launcher, the Environment Variables field
is empty.
The behavior is the same as LibreOffice: it works only every other boot.

Another software I use is Rednotebook. It is available in Tumbleweed's repos,
but it is not up to date, so I am using the Flatpak version.
It has some problems with my dark theme, so I forcce another theme by using the
variables GTK_THEME=Adwaita:dark and GDK_BACKEND=x11.
In this case, the launcher do show the variables, and it always behaves
correctly.
Its exec line is this: Exec=env GTK_THEME=Adwaita:dark GDK_BACKEND=x11
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=rednotebook
app.rednotebook.RedNotebook

I have other applications for which the launcher does not show the variables,
but they seem to work correctly every time.
It is very difficult to find a common pattern.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to