1
0
Fork 0
forked from wry/wry

config: allow running commands privileged

This commit is contained in:
Julian Orth 2024-04-01 13:16:34 +02:00
parent 4558bdb7c1
commit affea49e49
11 changed files with 74 additions and 5 deletions

View file

@ -944,6 +944,12 @@ impl Client {
})
}
pub fn get_socket_path(&self) -> Option<String> {
let res = self.send_with_response(&ClientMessage::GetSocketPath);
get_response!(res, None, GetSocketPath { path });
Some(path)
}
pub fn create_pollable(&self, fd: i32) -> Result<PollableId, String> {
let res = self.send_with_response(&ClientMessage::AddPollable { fd });
get_response!(