[Pkg-owncloud-commits] [owncloud-client] 176/219: SocketAPI: Split up for specific linux and mac implementation.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 11 14:43:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit e78c2518323df9b87885b91b5989496354e2b6cd
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Sep 30 11:15:27 2014 +0200
SocketAPI: Split up for specific linux and mac implementation.
---
src/mirall/socketapi.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp
index d8a2fe8..fd16afa 100644
--- a/src/mirall/socketapi.cpp
+++ b/src/mirall/socketapi.cpp
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list