diff options
-rw-r--r-- | lumina-desktop/LSession.cpp | 1 | ||||
-rw-r--r-- | lumina-desktop/main.cpp | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index 9fbd01bf..59df5c44 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -131,6 +131,7 @@ void LSession::setupSession(){ connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT(watcherChange(QString)) ); connect(this, SIGNAL(aboutToQuit()), this, SLOT(SessionEnding()) ); if(DEBUG){ qDebug() << " - Init Finished:" << timer->elapsed(); delete timer;} + QTimer::singleShot(3000, this, SLOT(launchStartupApps()) ); //startup these processes in 3 seconds } void LSession::CleanupSession(){ diff --git a/lumina-desktop/main.cpp b/lumina-desktop/main.cpp index adf96181..602ff2ec 100644 --- a/lumina-desktop/main.cpp +++ b/lumina-desktop/main.cpp @@ -80,17 +80,15 @@ int main(int argc, char ** argv) //Startup the Application if(DEBUG){ qDebug() << "Session Init:" << timer->elapsed(); } LSession a(argc, argv); - if(DEBUG){ qDebug() << "Theme Init:" << timer->elapsed(); } - LuminaThemeEngine theme(&a); //Setup Log File qInstallMessageHandler(MessageOutput); - if(DEBUG){ qDebug() << "Session Setup:" << timer->elapsed(); } - a.setupSession(); + if(DEBUG){ qDebug() << "Theme Init:" << timer->elapsed(); } + LuminaThemeEngine theme(&a); if(DEBUG){ qDebug() << "Load Locale:" << timer->elapsed(); } LUtils::LoadTranslation(&a, "lumina-desktop"); - //a.LoadLocale(QLocale().name()); - //Start launching external applications - QTimer::singleShot(3000, &a, SLOT(launchStartupApps()) ); //wait a couple seconds first + if(DEBUG){ qDebug() << "Session Setup:" << timer->elapsed(); } + a.setupSession(); + if(DEBUG){ qDebug() << "Exec Time:" << timer->elapsed(); delete timer;} int retCode = a.exec(); //qDebug() << "Stopping the window manager"; |