You are not logged in.

#1 2022-11-03 13:30:03

FerdiG
Member
Registered: 2022-11-02
Posts: 3

[SOLVED] Nautilus sidebar/UI icons and HiDPI

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

#2 2022-11-05 09:07:20

Archange
Package Maintainer (PM)
Registered: 2014-08-17
Posts: 41

Re: [SOLVED] Nautilus sidebar/UI icons and HiDPI

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

#3 2022-11-05 09:10:20

Archange
Package Maintainer (PM)
Registered: 2014-08-17
Posts: 41

Re: [SOLVED] Nautilus sidebar/UI icons and HiDPI

It seems that the issue is `GDK_DPI_SCALE=0.5` not being respected.

Offline

#4 2022-11-05 09:14:55

Archange
Package Maintainer (PM)
Registered: 2014-08-17
Posts: 41

Re: [SOLVED] Nautilus sidebar/UI icons and HiDPI

Offline

#5 2022-11-05 16:38:45

FerdiG
Member
Registered: 2022-11-02
Posts: 3

Re: [SOLVED] Nautilus sidebar/UI icons and HiDPI

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

#6 2022-11-05 16:55:31

Cbhihe
Member
Registered: 2017-04-09
Posts: 244

Re: [SOLVED] Nautilus sidebar/UI icons and HiDPI

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

Board footer

Powered by FluxBB