From 948b472269da1696f7438167fd66a5a4a7623ad3 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 18 Sep 2025 13:24:58 +0100 Subject: [PATCH] hyprpm: make temp root if not present --- hyprpm/src/core/DataState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hyprpm/src/core/DataState.cpp b/hyprpm/src/core/DataState.cpp index 623395b18..131146a16 100644 --- a/hyprpm/src/core/DataState.cpp +++ b/hyprpm/src/core/DataState.cpp @@ -18,6 +18,9 @@ static std::string getTempRoot() { const auto STR = ENV + std::string{"/hyprpm/"}; + if (!std::filesystem::exists(STR)) + mkdir(STR.c_str(), S_IRWXU); + return STR; }