FS#54688 - Okular blurry for HiDPI screens
Attached to Project:
Arch Linux
Opened by Matteo De Carlo (Portaloffreedom) - Tuesday, 04 July 2017, 11:57 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 05 July 2017, 21:28 GMT
Opened by Matteo De Carlo (Portaloffreedom) - Tuesday, 04 July 2017, 11:57 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 05 July 2017, 21:28 GMT
|
Details
Description:
in KDE, there is an option to scale the display. It works pretty fine, except for some apps. Steam for example is completely ignoring it making the window super small, but that is the same on windows. Reading PDF in okular though is more disturbing... The application is rendering at a different resolution and then scaling up orribly the PDF. This is already known in upstream: https://bugs.kde.org/show_bug.cgi?id=362856 but it seems is going to take a while before is fixed. Can we apply a small patch to the okular package to have a temporary solution? It should just unset the environment variable QT_SCREEN_SCALE_FACTORS before launching the application and everything looks fine (also properly scaled, not small). Is it feasible? Because, to be fair is quite an annoying bug. Additional info: * package version(s) okular: 17.04.2-1 kf5: 5.35.0-1 qt5-base: 5.9.1-1 plasma-desktop: 5.10.3-1 * config and/or log files etc. systemsettings5 -> display and monitor -> displays -> scale display -> scale set to 2 relevant environment variables: DESKTOP_SESSION=/usr/share/xsessions/plasma KDED_STARTED_BY_KDEINIT=1 KDE_FULL_SESSION=true QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QUICK_CONTROLS_STYLE=org.kde.desktop QT_SCREEN_SCALE_FACTORS=HDMI-0=2;DP-0=2;DP-1=2;DP-2=2;DP-3=2;DP-4=2;DP-5=2; SHLVL=2 XCURSOR_SIZE=0 XCURSOR_THEME=breeze_cursors XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=1 CHROMIUM_USER_FLAGS= --force-device-scale-factor=1 Steps to reproduce: systemsettings5 -> display and monitor -> displays -> scale display -> scale set to 2 (it should be a problem at every scale setting different than 1) open okular, any PDF |
This task depends upon

We won't add any patch that is not submitted upstream, but you can
easily achieve the same effect by overriding okular's desktop
files in ~/.local/share/applications and adjusting the environment
variables there.