From 39c7f9380029cb789ada8b4edf6e946881bdc545 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 27 Aug 2024 17:27:09 +0200 Subject: [PATCH] start-cosmic: Set QT auto scaling env variables This makes sure together with our XSettings implementation in cosmic-comp, that QT apps running on their xcb backend will react to the DPI values we are setting by changing their internal scaling. --- data/start-cosmic | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/start-cosmic b/data/start-cosmic index ab24f7d..323f271 100755 --- a/data/start-cosmic +++ b/data/start-cosmic @@ -35,6 +35,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1 export GDK_BACKEND=wayland,x11 export MOZ_ENABLE_WAYLAND=1 export QT_QPA_PLATFORM="wayland;xcb" +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +export QT_ENABLE_HIGHDPI_SCALING=1 if command -v systemctl >/dev/null; then # set environment variables for new units started by user service manager