aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-01-30 13:21:58 -0500
committerKen Moore <ken@ixsystems.com>2018-01-30 13:21:58 -0500
commit8b1cdec37e58d606a16ecb7539f72b092a3e2e16 (patch)
treed896ee61d74eccf1dd311da778c7c2cd3201403f /src-qt5/core/lumina-desktop-unified/LSession.cpp
parentGet the OSInterface framework up and running (template OS only at the moment) (diff)
downloadlumina-8b1cdec37e58d606a16ecb7539f72b092a3e2e16.tar.gz
lumina-8b1cdec37e58d606a16ecb7539f72b092a3e2e16.tar.bz2
lumina-8b1cdec37e58d606a16ecb7539f72b092a3e2e16.zip
Start putting the new statusTray plugin together.
The networking status button is working now, need to finish the others.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/LSession.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/LSession.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/LSession.cpp b/src-qt5/core/lumina-desktop-unified/LSession.cpp
index dcd1688f..1c103fab 100644
--- a/src-qt5/core/lumina-desktop-unified/LSession.cpp
+++ b/src-qt5/core/lumina-desktop-unified/LSession.cpp
@@ -31,7 +31,6 @@ LSession::LSession(int &argc, char ** argv) : LSingleApplication(argc, argv, "lu
qRegisterMetaType< NativeWindowSystem::MouseButton >("NativeWindowSystem::MouseButton");
mediaObj = 0; //private object used for playing login/logout chimes
- OSThread = 0;
if(this->isPrimaryProcess()){
//Setup the global registrations
qsrand(QDateTime::currentMSecsSinceEpoch());
@@ -58,9 +57,6 @@ LSession::LSession(int &argc, char ** argv) : LSingleApplication(argc, argv, "lu
Lumina::APPLIST = XDGDesktopList::instance();
Lumina::ROOTWIN = new RootWindow();
Lumina::SHORTCUTS = new LShortcutEvents(); //this can be moved to it's own thread eventually as well
- OSThread = new QThread();
- OSInterface::instance()->moveToThread(OSThread);
- OSThread->start();
setupGlobalConnections();
} //end check for primary process
}
@@ -80,10 +76,6 @@ LSession::~LSession(){
if(Lumina::DESKMAN!=0){ Lumina::DESKMAN->deleteLater(); }
if(OSInterface::instance()->isRunning()){ OSInterface::instance()->stop(); }
OSInterface::instance()->deleteLater();
- if(OSThread!=0){
- if(OSThread->isRunning()){ OSThread->quit(); }
- OSThread->deleteLater();
- }
}
void LSession::setupSession(){
@@ -117,7 +109,7 @@ void LSession::setupSession(){
//checkUserFiles(); //adds these files to the watcher as well
Lumina::NWS->setRoot_numberOfWorkspaces(QStringList() << "one" << "two");
Lumina::NWS->setRoot_currentWorkspace(0);
- if(!OSInterface::instance()->isRunning()){ OSInterface::instance()->start(); }
+ OSInterface::instance()->start();
Lumina::DESKMAN->start();
Lumina::ROOTWIN->start();
bgstack15