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/debug | |
| 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/debug')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 2 | ||||
| -rw-r--r-- | src/debug/Log.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 7f09eb18..ce2f5c45 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1746,7 +1746,7 @@ void CHyprCtl::startHyprCtlSocket() { sockaddr_un SERVERADDRESS = {.sun_family = AF_UNIX}; - std::string socketPath = "/tmp/hypr/" + g_pCompositor->m_szInstanceSignature + "/.socket.sock"; + std::string socketPath = g_pCompositor->m_szInstancePath + "/.socket.sock"; strcpy(SERVERADDRESS.sun_path, socketPath.c_str()); diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 32d235e1..9fdf47f8 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -6,7 +6,7 @@ #include <iostream> void Debug::init(const std::string& IS) { - logFile = "/tmp/hypr/" + IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log"); + logFile = IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log"); } void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { |
