[Pkg-owncloud-commits] [owncloud-client] 69/84: Dolphin Plugin: Use the Application name for the socket path (#5172)
Sandro Knauß
hefee at moszumanska.debian.org
Fri Oct 21 22:51:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch master
in repository owncloud-client.
commit 8b9ca63eeb82812c7d6138d277b2602edbc6a0ef
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Sep 12 14:12:33 2016 +0200
Dolphin Plugin: Use the Application name for the socket path (#5172)
do not hardcode.
This should fix #5165
(cherry picked from commit 2d110540ee5a67d2c014fcf4258840d3aaf538ac)
---
shell_integration/dolphin/ownclouddolphinpluginhelper.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp b/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp
index 027e0e6..68c2a9c 100644
--- a/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp
+++ b/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp
@@ -21,6 +21,7 @@
#include <qcoreevent.h>
#include <QFile>
#include "ownclouddolphinpluginhelper.h"
+#include "config.h"
OwncloudDolphinPluginHelper* OwncloudDolphinPluginHelper::instance()
{
@@ -67,7 +68,10 @@ void OwncloudDolphinPluginHelper::tryConnect()
return;
}
QString runtimeDir = QFile::decodeName(qgetenv("XDG_RUNTIME_DIR"));
- QString socketPath = runtimeDir + QLatin1String("/ownCloud/socket");
+ runtimeDir.append( QChar('/'));
+ runtimeDir.append( QLatin1String(APPLICATION_SHORTNAME) );
+
+ const QString socketPath = runtimeDir + QLatin1String("/socket");
_socket.connectToServer(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