hyprpm: move to system directories for storing plugins (#10211)
This commit is contained in:
parent
b5ef049ea1
commit
858c0e26d1
11 changed files with 278 additions and 74 deletions
12
hyprpm/src/helpers/Sys.hpp
Normal file
12
hyprpm/src/helpers/Sys.hpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace NSys {
|
||||
bool isSuperuser();
|
||||
int getUID();
|
||||
int getEUID();
|
||||
std::string runAsSuperuser(const std::string& cmd);
|
||||
void cacheSudo();
|
||||
void dropSudo();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue