From 9835e8bbb29dcccc159d8469be4f452865bad338 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Wed, 25 Mar 2020 18:40:10 +0800 Subject: [PATCH] fix single instance guard on macOS --- src/vsingleinstanceguard.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vsingleinstanceguard.cpp b/src/vsingleinstanceguard.cpp index 67bdc27f..2ddacfcc 100644 --- a/src/vsingleinstanceguard.cpp +++ b/src/vsingleinstanceguard.cpp @@ -38,8 +38,10 @@ bool VSingleInstanceGuard::tryRun() m_online = true; return true; } else { - qDebug() << "fail to create shared memory segment"; - return false; + qWarning() << "fail to create shared memory segment " + "(keep in mind that do not run multiple instances of VNote)"; + // On macOS, this happens a lot. Just let it go. + return true; } }