mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 08:50:05 +01:00
12 lines
No EOL
249 B
C++
12 lines
No EOL
249 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace NSys {
|
|
bool isSuperuser();
|
|
int getUID();
|
|
int getEUID();
|
|
std::string runAsSuperuser(const std::string& cmd);
|
|
void cacheSudo();
|
|
void dropSudo();
|
|
}; |