summaryrefslogtreecommitdiff
path: root/hyprpm/src/helpers/Sys.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprpm/src/helpers/Sys.hpp')
-rw-r--r--hyprpm/src/helpers/Sys.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/hyprpm/src/helpers/Sys.hpp b/hyprpm/src/helpers/Sys.hpp
index b44eb758..03d5a0de 100644
--- a/hyprpm/src/helpers/Sys.hpp
+++ b/hyprpm/src/helpers/Sys.hpp
@@ -1,11 +1,13 @@
#pragma once
#include <string>
+#include <optional>
namespace NSys {
- bool isSuperuser();
- int getUID();
- int getEUID();
+ bool isSuperuser();
+ int getUID();
+ int getEUID();
+ std::optional<std::string> findInPath(const std::string& exe);
// NOLINTNEXTLINE
namespace root {
@@ -20,4 +22,4 @@ namespace NSys {
// Do not use this unless absolutely necessary!
std::string runAsSuperuserUnsafe(const std::string& cmd);
};
-}; \ No newline at end of file
+};