瀏覽代碼

fix single instance guard on macOS

Le Tan 5 年之前
父節點
當前提交
9835e8bbb2
共有 1 個文件被更改,包括 4 次插入2 次删除
  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;
     }
 }