hyprland/backend: use /tmp

Was hardcoded to /tmp in previous versions
This commit is contained in:
Austin Horstman 2024-05-28 10:57:57 -05:00
parent 57f2a57dac
commit 24e8766aaa
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ std::filesystem::path getSocketFolder(const char* instanceSig) {
socketFolder = xdgRuntimeDir / "hypr"; socketFolder = xdgRuntimeDir / "hypr";
} else { } else {
spdlog::warn("$XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr"); spdlog::warn("$XDG_RUNTIME_DIR/hypr does not exist, falling back to /tmp/hypr");
socketFolder = std::filesystem::temp_directory_path() / "hypr"; socketFolder = std::filesystem::path("/tmp") / "hypr";
} }
socketFolder = socketFolder / instanceSig; socketFolder = socketFolder / instanceSig;
return socketFolder; return socketFolder;