From f79522760c8d828e10508560742feee61c013f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 18 Jun 2026 14:51:53 +0200 Subject: [PATCH] sys-gui: copy dpi from the host display ... instead of using hardcoded default of 75. This is especially relevant with Xfce change to automatically detect DPI. QubesOS/qubes-issues#10840 --- appvm-scripts/usrbin/qubes-run-xephyr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appvm-scripts/usrbin/qubes-run-xephyr b/appvm-scripts/usrbin/qubes-run-xephyr index a2849cc0..9a3f9230 100644 --- a/appvm-scripts/usrbin/qubes-run-xephyr +++ b/appvm-scripts/usrbin/qubes-run-xephyr @@ -8,4 +8,9 @@ elif [ -e /usr/lib64/qubes-gui-daemon/shmoverride.so ]; then SHMOVERRIDE=/usr/lib64/qubes-gui-daemon/shmoverride.so fi +DPI=$(xdpyinfo | sed -n '/resolution:/s/.* \([0-9]\+\)x[0-9]\+.*/\1/p') +if [ -n "$DPI" ]; then + OPTIONS_XEPHYR="$OPTIONS_XEPHYR -dpi $DPI" +fi + LD_PRELOAD=$SHMOVERRIDE /usr/bin/Xephyr $OPTIONS_XEPHYR "$DISPLAY_XEPHYR" > ~/.xephyr-errors 2>&1