You are not logged in.
Hi,
Since I pacman -Syu'ed some days ago I've noticed some odd behaviour in several GTK based applications like Nautilus, Shotwell or even LibreOffice on my HiDPI monitors:
- in Nautilus and Shotwell, the sidebar icons are all very small and the font seems rather narrow
- in LibreOffice Calc when one marks a cell with a comment, a red dot is displayed in the corner of the cell. This dot is very tiny after the upgrade as well.
My setup is as follows:
- I run i3 from gdm
- I've set GDK_SCALE=2 in my environment
- I've set Xft.dpi: 192 in my ~/.Xdefaults
This used to work until the last update. What puzzles me is that not the whole application is small (like usually on HiDPI with a scaling factor of 1) but only certain UI elements like icons.
Did anybody notice a similar behaviour? I vaguely recall reading about some magic setting that controls UI element size in GTK applications in the past. But appearently my Google skills are not good enough to dig this info up again. ;-)
Thanks!
Ferdinand
Last edited by FerdiG (2022-11-06 17:18:41)
Offline
I’m also having a similar issue with Nautilus (and other GTK4 apps) while running them on a HiDPI monitor under KDE Plasma. I don’t have Xft.dpi set, I instead rely on Plasma scale factor.
Offline
It seems that the issue is `GDK_DPI_SCALE=0.5` not being respected.
Offline
Offline
Thank you for pointing this out. I experimented a bit today and it indeed seems that GTK4 changes the interpretation of GDK_SCALE. At least on my machine nautilus is using GTK4 now:
% ldd `which nautilus`|grep gtk
libgtk-4.so.1 => /usr/lib/libgtk-4.so.1 (0x00007ff6b8000000)
I have now resorted to
- switching from gdm to just 'startx'
- not using GDK_SCALE anymore
- setting Xft.dpi: 192 in ~/.Xdefaults
- running 'xrandr --dpi 192' from my .xinitrc
This fixes my problems mostly ... at least nautilus, libreoffice and a few other applications look nice again.
Offline
Would you mind editing your thread title in post #1 to place "[SOLVED] " at the beginning of the title, so others understand that you accept the described solution ? Thanks.
I like strawberries, therefore I'm not a bot.
Offline