Commit 14cd1913 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

Set GDK scale explictily on wayland

On wayland we don't want to use the env vars as we send the scale via
wl_output scale.

If a user logs into X first we set these in our activation env to a
scaled value. If they then log into wayland afterwards they are still
set. Calling qunsetenv won't work as then we won't remove them from the
activation env.

Arguably it's working round a bug, but we don't have other options.

BUG: 438971


(cherry picked from commit 4ef92d8c)
parent f2cfe779
......@@ -77,6 +77,8 @@ int main(int argc, char **argv)
setupPlasmaEnvironment();
runStartupConfig();
qputenv("PLASMA_USE_QT_SCALING", "1");
qputenv("GDK_SCALE", "1");
qputenv("GDK_DPI_SCALE", "1");
qputenv("XDG_SESSION_TYPE", "wayland");
......
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