Skip to content

Commit

Permalink
socket file moved from /tmp to /run
Browse files Browse the repository at this point in the history
  • Loading branch information
marazmista committed Jun 3, 2019
1 parent 7ba67f0 commit ec81c14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions radeon-profile-daemon/rpdthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion radeon-profile-daemon/rpdthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ec81c14

Please sign in to comment.