How to make dom0 (xterm) respect /etc/X11/Xresouces automatically?

I use a high DPI display. Everything works perfectly except XTerm in dom0. After fresh boot the fonts in my XTerm get rendered too small. I then run xrdb -merge /etc/X11/Xresources and launch a new instance of XTerm. Then all is good until the next reboot.

Shouldn’t dom0 / Fedora just use /etc/X11/Xresources anyway, without me explicitly telling it to do so?

Xft.dpi: 192
Xft.hintstyle: hintmedium
Xft.hinting: true
XTerm*faceName: Ubuntu Mono
XTerm*faceSize: 11
XTerm*background: white
XTerm*foreground: black

It turns out the same issue and fix also affect the Qubes OS QT Apps like the settings dialog or the Qube Manager. I simply had previously defined QT_SCALE_FACTOR=2, but that leads to 4x after running xrdb -merge /etc/X11/Xresources. So I removed that. Now the Qubes QT Apps behave exactly like XTerm.

Again, once I manually apply xrdb -merge /etc/X11/Xresources it’s all fine. But I really shouldn’t have to – yes?

… because XFCE uses a settings daemon the xft.dpi is ignored. Got it. I know that actually.

1 Like