aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-08-03 14:09:25 -0400
committerKen Moore <ken@ixsystems.com>2017-08-03 14:09:25 -0400
commitea4633af10fdc9ad297bb453fd5dd26ac25448ff (patch)
tree1807936bc3f2e0d20fab0026b320894dd36bdb63 /src-qt5/core/lumina-session
parentCleanup some fallback routines for loading icons from the Qt theme methods. (diff)
downloadlumina-ea4633af10fdc9ad297bb453fd5dd26ac25448ff.tar.gz
lumina-ea4633af10fdc9ad297bb453fd5dd26ac25448ff.tar.bz2
lumina-ea4633af10fdc9ad297bb453fd5dd26ac25448ff.zip
Setup the Lumina 1.x desktop to use the new theme engine by default
Diffstat (limited to 'src-qt5/core/lumina-session')
-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