Skip to content

Commit

Permalink
[sensorfw] Move sensord.sock to /run. JB#52757
Browse files Browse the repository at this point in the history
Changed to make app sandboxing using firejail easier because it has
limitations for rules containing /var/run.
Also /var/run is considered legacy path and /run should be used instead.
  • Loading branch information
mlehtima committed Jan 21, 2021
1 parent 492a653 commit 9d0b285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/sensormanager.cpp
Expand Up @@ -169,7 +169,7 @@ SensorManager::SensorManager()
deviation(0)
{
QString pluginPath;
const char* SOCKET_NAME = "/var/run/sensord.sock";
const char* SOCKET_NAME = "/run/sensord.sock";
QByteArray env = qgetenv("SENSORFW_SOCKET_PATH");
if (!env.isEmpty()) {
env += SOCKET_NAME;
Expand Down
2 changes: 1 addition & 1 deletion qt-api/socketreader.cpp
Expand Up @@ -50,7 +50,7 @@ bool SocketReader::initiateConnection(int sessionId)
}

socket_ = new QLocalSocket(this);
const char* SOCKET_NAME = "/var/run/sensord.sock";
const char* SOCKET_NAME = "/run/sensord.sock";
QByteArray env = qgetenv("SENSORFW_SOCKET_PATH");
if (!env.isEmpty()) {
env += SOCKET_NAME;
Expand Down

0 comments on commit 9d0b285

Please sign in to comment.