diff -Npur polkit-0.113.orig/src/programs/pkexec.c polkit-0.113/src/programs/pkexec.c --- polkit-0.113.orig/src/programs/pkexec.c 2015-06-18 22:20:50.000000000 +0200 +++ polkit-0.113/src/programs/pkexec.c 2016-06-29 00:17:11.024044939 +0200 @@ -483,6 +483,13 @@ main (int argc, char *argv[]) */ "DISPLAY", "XAUTHORITY", + "KDE_FULL_SESSION", + "KDE_SESSION_VERSION", + "GNOME_DESKTOP_SESSION_ID", + "XDG_CURRENT_DESKTOP", + "QT_STYLE_OVERRIDE", + "QT_XCB_FORCE_SOFTWARE_OPENGL", + "QT_QPA_PLATFORMTHEME", NULL }; GPtrArray *saved_env;