hyprpm: make temp root if not present
This commit is contained in:
parent
5648077978
commit
059ec60e9f
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ static std::string getTempRoot() {
|
||||||
|
|
||||||
const auto STR = ENV + std::string{"/hyprpm/"};
|
const auto STR = ENV + std::string{"/hyprpm/"};
|
||||||
|
|
||||||
|
if (!std::filesystem::exists(STR))
|
||||||
|
mkdir(STR.c_str(), S_IRWXU);
|
||||||
|
|
||||||
return STR;
|
return STR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue