diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-01 10:33:19 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-01 10:33:19 -0500 |
commit | f7b894621578f5b54b3da9a3291586cee503c2d9 (patch) | |
tree | 1c68d19d5be77c22b56f99f6e1d440760bad5dac /src-qt5/core/lumina-desktop/LSession.cpp | |
parent | Add the Lumina version to the bottom of the boot splash as well. (diff) | |
download | lumina-f7b894621578f5b54b3da9a3291586cee503c2d9.tar.gz lumina-f7b894621578f5b54b3da9a3291586cee503c2d9.tar.bz2 lumina-f7b894621578f5b54b3da9a3291586cee503c2d9.zip |
Get rid of the "fortune" usage, and replace it with a built-in system of tips for Lumina itself (avoids strange stuff from fortune, and ensures information which is at least semi-useful for the user).
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 289d7ede..27b40aa3 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -81,14 +81,16 @@ LSession::~LSession(){ } void LSession::setupSession(){ + //Seed random number generator (if needed) + qsrand( QTime::currentTime().msec() ); + BootSplash splash; splash.showScreen("init"); qDebug() << "Initializing Session"; if(QFile::exists("/tmp/.luminastopping")){ QFile::remove("/tmp/.luminastopping"); } QTime* timer = 0; - if(DEBUG){ timer = new QTime(); timer->start(); qDebug() << " - Init srand:" << timer->elapsed();} - //Seed random number generator (if needed) - qsrand( QTime::currentTime().msec() ); + //if(DEBUG){ timer = new QTime(); timer->start(); qDebug() << " - Init srand:" << timer->elapsed();} + //Setup the QSettings default paths splash.showScreen("settings"); if(DEBUG){ qDebug() << " - Init QSettings:" << timer->elapsed();} |