Browse Source

fix single instance guard on macOS

Le Tan 5 years ago
parent
commit
9835e8bbb2
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/vsingleinstanceguard.cpp

+ 4 - 2
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;
     }
 }