From 2d110540ee5a67d2c014fcf4258840d3aaf538ac Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 12 Sep 2016 14:12:33 +0200 Subject: [PATCH] Dolphin Plugin: Use the Application name for the socket path (#5172) do not hardcode. This should fix #5165 --- 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 027e0e68ee..68c2a9c297 100644 --- a/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp +++ b/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp @@ -21,6 +21,7 @@ #include #include #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); }