mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
SocketAPI: Split up for specific linux and mac implementation.
This commit is contained in:
parent
efbc495f79
commit
e78c251832
1 changed files with 3 additions and 1 deletions
|
@ -249,7 +249,7 @@ SocketApi::SocketApi(QObject* parent)
|
|||
// We use the generic SyncStateHelper name on OS X since the different branded clients
|
||||
// should unfortunately not mention that they are ownCloud :-)
|
||||
#endif
|
||||
} else {
|
||||
} else if( Utility::isLinux() ) {
|
||||
QString runtimeDir;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
runtimeDir = QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation);
|
||||
|
@ -257,6 +257,8 @@ SocketApi::SocketApi(QObject* parent)
|
|||
runtimeDir = QFile::decodeName(qgetenv("XDG_RUNTIME_DIR"));
|
||||
#endif
|
||||
socketPath = runtimeDir + "/" + Theme::instance()->appName() + "/socket";
|
||||
} else {
|
||||
DEBUG << "An unexpected system detected";
|
||||
}
|
||||
|
||||
QLocalServer::removeServer(socketPath);
|
||||
|
|
Loading…
Reference in a new issue