Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 31e1a1a9 authored by Peter Eszlari's avatar Peter Eszlari Committed by Nate Graham

X11: set GDK_SCALE (try 2)

Summary: BUG: 387849

Reviewers: davidedmundson, ngraham, #plasma, broulik

Reviewed By: ngraham

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision:
parent 9eb9dc1b
......@@ -49,6 +49,7 @@ kcminputrc Mouse cursorTheme 'breeze_cursors'
kcminputrc Mouse cursorSize ''
ksplashrc KSplash Theme Breeze
ksplashrc KSplash Engine KSplashQML
kdeglobals KScreen ScaleFactor ''
kdeglobals KScreen ScreenScaleFactors ''
kcmfonts General forceFontDPI 0
......@@ -94,6 +95,10 @@ fi
if [ "$kdeglobals_kscreen_screenscalefactors" ]; then
export QT_SCREEN_SCALE_FACTORS="$kdeglobals_kscreen_screenscalefactors"
if [ "$kdeglobals_kscreen_scalefactor" -eq "2" ] || [ "$kdeglobals_kscreen_scalefactor" -eq "3" ]; then
export GDK_SCALE=$kdeglobals_kscreen_scalefactor
export GDK_DPI_SCALE=`awk "BEGIN {print 1/$kdeglobals_kscreen_scalefactor}"`
#Manually disable auto scaling because we are scaling above
#otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment