diff options
author | Ken Moore <moorekou@gmail.com> | 2015-08-21 08:05:12 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-08-21 08:05:12 -0400 |
commit | 3ae19bfbdeec0d98f39988cadead298ff45d30ea (patch) | |
tree | 6426f2e592004e33934c0752170f83c9519d5efc | |
parent | Oops, make sure that applauncher/desktop icon check is run before deleting th... (diff) | |
download | lumina-3ae19bfbdeec0d98f39988cadead298ff45d30ea.tar.gz lumina-3ae19bfbdeec0d98f39988cadead298ff45d30ea.tar.bz2 lumina-3ae19bfbdeec0d98f39988cadead298ff45d30ea.zip |
Update the single-application framework a big so that networking limitations simple result in a fallback on standard QApplication usage (no single-instance available).
-rw-r--r-- | libLumina/LuminaSingleApplication.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libLumina/LuminaSingleApplication.cpp b/libLumina/LuminaSingleApplication.cpp index 120e4881..2b1994e1 100644 --- a/libLumina/LuminaSingleApplication.cpp +++ b/libLumina/LuminaSingleApplication.cpp @@ -82,17 +82,21 @@ void LSingleApplication::PerformLockChecks(){ lserver = new QLocalServer(this); connect(lserver, SIGNAL(newConnection()), this, SLOT(newInputsAvailable()) ); if( lserver->listen(cfile) ){ + qDebug() << " - Created new single-instance lock"; lserver->setSocketOptions(QLocalServer::UserAccessOption); //qDebug() << " - Success"; isActive = true; }else{ - //qDebug() << " - Failure:" << lserver->errorString(); + qDebug() << " - WARNING: Could not create single-instance framework"; + qDebug() << " - Falling back on standard application startup"; lockfile->unlock(); + isActive = true; } }else{ //forward the current inputs to the locked process for processing and exit - //qDebug() << "Forward inputs to locking process:" << inputlist; + qDebug() << "Single-instance lock found"; + qDebug() << " - Forwarding inputs to locking process and exiting..."; QLocalSocket socket(this); socket.connectToServer(cfile); socket.waitForConnected(); |