aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libLumina/LuminaSingleApplication.cpp8
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();
bgstack15