mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 00:21:56 -07:00
hyprpm: move to system directories for storing plugins (#10211)
This commit is contained in:
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();
|
||||
};
|
Reference in New Issue
Block a user