diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-04-28 22:25:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 22:25:24 +0100 |
| commit | a5a648091760ac002120fab18247e5292b6482de (patch) | |
| tree | 0fd68dff8db4277bd2d030867628cbb48f63ce7c /src/managers/EventManager.cpp | |
| parent | d20ee312108d0e7879011cfffa3a83d06e48d29e (diff) | |
core: Move /tmp/hypr to $XDG_RUNTIME_DIR/hypr (#5788)
Moves the directory containing sockets and logs.
Also restructures lockfiles a bit.
For consumers, check if `$XDG_RUNTIME_DIR/hypr` exists. If so, use it. If not, use the old `/tmp/hypr`.
Diffstat (limited to 'src/managers/EventManager.cpp')
| -rw-r--r-- | src/managers/EventManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 57824430..8605768c 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -39,7 +39,7 @@ void CEventManager::startThread() { } sockaddr_un SERVERADDRESS = {.sun_family = AF_UNIX}; - std::string socketPath = "/tmp/hypr/" + g_pCompositor->m_szInstanceSignature + "/.socket2.sock"; + std::string socketPath = g_pCompositor->m_szInstancePath + "/.socket2.sock"; strncpy(SERVERADDRESS.sun_path, socketPath.c_str(), sizeof(SERVERADDRESS.sun_path) - 1); bind(m_iSocketFD, (sockaddr*)&SERVERADDRESS, SUN_LEN(&SERVERADDRESS)); |
