aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/main.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-07-19 19:01:31 +0000
committerWeblate <noreply@weblate.org>2017-07-19 19:01:31 +0000
commitb687e491eea208afba43b67a072ddf430bfeb1fc (patch)
tree80c24ebc2a04e3d20e74004ebf9e5411252a697d /src-qt5/core/lumina-desktop-unified/main.cpp
parentPush local changes (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-b687e491eea208afba43b67a072ddf430bfeb1fc.tar.gz
lumina-b687e491eea208afba43b67a072ddf430bfeb1fc.tar.bz2
lumina-b687e491eea208afba43b67a072ddf430bfeb1fc.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/main.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/main.cpp b/src-qt5/core/lumina-desktop-unified/main.cpp
index 6141f1ea..0b67de46 100644
--- a/src-qt5/core/lumina-desktop-unified/main.cpp
+++ b/src-qt5/core/lumina-desktop-unified/main.cpp
@@ -8,10 +8,11 @@
#include "global-includes.h"
#include "LSession.h"
-#define DEBUG 0
+#define DEBUG 1
int main(int argc, char ** argv)
{
+ qDebug() << "Starting lumina-desktop-unified...";
if (argc > 1) {
if (QString(argv[1]) == QString("--version")){
qDebug() << LDesktopUtils::LuminaDesktopVersion();
@@ -27,8 +28,10 @@ int main(int argc, char ** argv)
LXDG::setEnvironmentVars();
setenv("DESKTOP_SESSION","Lumina",1);
setenv("XDG_CURRENT_DESKTOP","Lumina",1);
+ setenv("QT_NO_GLIB", "1", 1); //Disable the glib event loop within Qt at runtime (performance hit + bugs)
unsetenv("QT_QPA_PLATFORMTHEME"); //causes issues with Lumina themes - not many people have this by default...
//Startup the session
+ if(DEBUG){ qDebug() << "Starting unified session"; }
LSession a(argc, argv);
if(!a.isPrimaryProcess()){ return 0; }
QTime *timer=0;
@@ -41,6 +44,6 @@ int main(int argc, char ** argv)
theme.refresh();
if(DEBUG){ qDebug() << "Exec Time:" << timer->elapsed(); delete timer;}
int retCode = a.exec();
- qDebug() << "Finished Closing Down Lumina";
+ qDebug() << "Finished Closing Down Unified Lumina";
return retCode;
}
bgstack15