Browse Source

fix single instance guard on macOS

Le Tan 5 năm trước cách đây
mục cha
commit
9835e8bbb2
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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;
     }
 }