diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-09-18 13:24:58 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-09-18 13:25:04 +0100 |
| commit | 059ec60e9f32e4d7a21c0bc15b010bcb30a1303b (patch) | |
| tree | 8f689b4290f06c5a3f6239936d41a8b5220455e1 | |
| parent | 5648077978d73d76312581176700a5df79af71c2 (diff) | |
hyprpm: make temp root if not present
| -rw-r--r-- | hyprpm/src/core/DataState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
