Skip to content

Commit

Permalink
Merge pull request #1 from stintel/issue-18
Browse files Browse the repository at this point in the history
Issue 18: Fixed - properly locating the socket under /run with appropriate
  • Loading branch information
Oxalin authored Jan 20, 2023
2 parents 7923bd6 + 011e290 commit 3cbaefe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ make

There is a service file for systemd in radeon-profile-daemon/extra. If installed manually, copy service file to `/etc/systemd/system/`. After that, execute `systemctl enable radeon-profile-daemon.service` and `systemctl start radeon-profile-daemon.service` to make the daemon running.

# tmpfiles

There is a tmpfiles file that can be used by opentmpfiles or systemd-tmpfiles in radeon-profile-daemon/extra. If installed, it will make sure the /run/radeon-profile-daemon directory is created with the correct ownership and permissions.

# Links

* AUR package: https://aur.archlinux.org/packages/radeon-profile-daemon-git
Expand Down
1 change: 1 addition & 0 deletions radeon-profile-daemon/extra/radeon-profile-daemon.tmpfiles
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d /run/radeon-profile-daemon 0750 root video -
2 changes: 1 addition & 1 deletion radeon-profile-daemon/rpdthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void rpdThread::createServer()

QLocalServer::removeServer(serverSocketPath);
daemonServer.listen(serverSocketPath);
QFile::setPermissions(serverSocketPath, QFile(serverSocketPath).permissions() | QFile::WriteOther | QFile::ReadOther);
QFile::setPermissions(serverSocketPath, QFile(serverSocketPath).permissions() | QFile::WriteGroup);
}

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 = "20190603";
const QString serverSocketPath = "/run/radeon-profile-daemon-server";
const QString serverSocketPath = "/run/radeon-profile-daemon/radeon-profile-daemon-server";

class rpdThread : public QThread
{
Expand Down

0 comments on commit 3cbaefe

Please sign in to comment.