From ec81c14aaca4753787e7be3630d478563216bd9d Mon Sep 17 00:00:00 2001 From: marazmista Date: Mon, 3 Jun 2019 19:50:48 +0200 Subject: [PATCH] socket file moved from /tmp to /run --- radeon-profile-daemon/rpdthread.cpp | 6 +++--- radeon-profile-daemon/rpdthread.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/radeon-profile-daemon/rpdthread.cpp b/radeon-profile-daemon/rpdthread.cpp index cbea249..8785efa 100644 --- a/radeon-profile-daemon/rpdthread.cpp +++ b/radeon-profile-daemon/rpdthread.cpp @@ -45,9 +45,9 @@ void rpdThread::createServer() qInfo() << "Awaiting connections..."; - QLocalServer::removeServer(serverName); - daemonServer.listen(serverName); - QFile::setPermissions("/tmp/" + serverName, QFile("/tmp/" + serverName).permissions() | QFile::WriteOther | QFile::ReadOther); + QLocalServer::removeServer(serverSocketPath); + daemonServer.listen(serverSocketPath); + QFile::setPermissions(serverSocketPath, QFile(serverSocketPath).permissions() | QFile::WriteOther | QFile::ReadOther); } void rpdThread::closeConnection() diff --git a/radeon-profile-daemon/rpdthread.h b/radeon-profile-daemon/rpdthread.h index c80f5fd..561b530 100644 --- a/radeon-profile-daemon/rpdthread.h +++ b/radeon-profile-daemon/rpdthread.h @@ -31,7 +31,7 @@ #define SIGNAL_ALIVE '7' const QString appVersion = "20190309"; -const QString serverName = "radeon-profile-daemon-server"; +const QString serverSocketPath = "/run/radeon-profile-daemon-server"; class rpdThread : public QThread {