Browse Source

Fix the socket path to /tmp on Unix so that we can remove it when it's stale.

Tobias Hieta 9 năm trước cách đây
mục cha
commit
d32c32c052
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/shared/Paths.cpp

+ 4 - 0
src/shared/Paths.cpp

@@ -86,5 +86,9 @@ QString Paths::socketName(const QString& serverName)
   if(userName.isEmpty())
     userName = "unknown";
 
+#ifdef Q_OS_UNIX
+  return QString("/tmp/pmp_%1_%2.sock").arg(serverName).arg(userName);
+#else
   return QString("pmp_%1_%2.sock").arg(serverName).arg(userName);
+#endif
 }