aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session/session.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-07 15:58:22 +0000
committerWeblate <noreply@weblate.org>2017-08-07 15:58:22 +0000
commit1a320d85b86593fb7716eea493df39e339bbae77 (patch)
tree33a44e00ac33f4c0d558e40e173472cb7ada624f /src-qt5/core/lumina-session/session.cpp
parentTranslated using Weblate (French) (diff)
parentTranslated using Weblate (Catalan) (diff)
downloadlumina-1a320d85b86593fb7716eea493df39e339bbae77.tar.gz
lumina-1a320d85b86593fb7716eea493df39e339bbae77.tar.bz2
lumina-1a320d85b86593fb7716eea493df39e339bbae77.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-session/session.cpp')
-rw-r--r--src-qt5/core/lumina-session/session.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp
index 48a25a8f..f9c8060a 100644
--- a/src-qt5/core/lumina-session/session.cpp
+++ b/src-qt5/core/lumina-session/session.cpp
@@ -85,6 +85,12 @@ void LSession::start(bool unified){
if(!LUtils::isValidBinary("lumina-desktop") ){
exit(1);
}
+ setenv("DESKTOP_SESSION","Lumina",1);
+ setenv("XDG_CURRENT_DESKTOP","Lumina",1);
+ setenv("QT_QPA_PLATFORMTHEME","lthemeengine", true);
+ setenv("QT_NO_GLIB", "1", 1); //Disable the glib event loop within Qt at runtime (performance hit + bugs)
+ unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); //need exact-pixel measurements (no fake scaling)
+
if(!unified){
QSettings sessionsettings("lumina-desktop","sessionsettings");
QString WM = sessionsettings.value("WindowManager", "fluxbox").toString();
bgstack15