From 059ec60e9f32e4d7a21c0bc15b010bcb30a1303b 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 623395b1..131146a1 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; }