From 5bd7ff884dc613ad22ecd227d41ce6ad7ee336df Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 29 Apr 2025 18:59:43 +0200 Subject: permissions: add perms for plugin loading (#10184) Adds permission management for loading plugins --------- Co-authored-by: Jan Beich --- src/debug/HyprCtl.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/debug/HyprCtl.hpp') diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp index a62dd665..b4f3d690 100644 --- a/src/debug/HyprCtl.hpp +++ b/src/debug/HyprCtl.hpp @@ -2,8 +2,10 @@ #include #include "../helpers/MiscFunctions.hpp" +#include "../helpers/defer/Promise.hpp" #include "../desktop/Window.hpp" #include +#include #include // exposed for main.cpp @@ -23,8 +25,10 @@ class CHyprCtl { Hyprutils::OS::CFileDescriptor m_socketFD; struct { - bool all = false; - bool sysInfoConfig = false; + bool all = false; + bool sysInfoConfig = false; + pid_t pid = 0; + SP> pendingPromise; } m_currentRequestParams; static std::string getWindowData(PHLWINDOW w, eHyprCtlOutputFormat format); -- cgit v1.2.3