mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-12 23:00:36 +01:00

Some checks are pending
Build Hyprland / Build Hyprland (Arch) (push) Waiting to run
Build Hyprland / Build Hyprland with Meson (Arch) (push) Waiting to run
Build Hyprland / Build Hyprland without precompiled headers (Arch) (push) Waiting to run
Build Hyprland / Build Hyprland in pure Wayland (Arch) (push) Waiting to run
Build Hyprland / Code Style (Arch) (push) Waiting to run
Nix (CI) / update-inputs (push) Waiting to run
Nix (CI) / build (push) Waiting to run
Security Checks / Flawfinder Checks (push) Waiting to run
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();
|
|
}; |