You are not logged in.
I am trying to write a polkit rule for ydotool.
Is it possible?
I know ydotool and ydotoold are required to run as root.
It makes me headache to write a script using ydotool.
Although I found many posts online to get ydotool works without asking password everything,
I want to use polkit rule to grant ydotool and ydotoold root privilege.
I read this https://wiki.archlinux.org/title/Polkit … tion_rules
and if I replace org.gnome.gparted with action.id of ydotool and ydotoold, is it possible?
If so, how can I find the adction.id of ydotool and ydotoold?
I do pkaction command and it shows many action.id but ydotool is not included.
Last edited by duyinthee (2024-01-11 01:29:03)
Offline
"pkexec"
if I replace org.gnome.gparted with action.id of ydotool and ydotoold, is it possible?
No, there's no ydotool "action.id" - this isn't how polkit works.
https://wiki.archlinux.org/title/Polkit#Actions
I know ydotool and ydotoold are required to run as root.
Do you? Do they?
What distro do you use?
The arch package ships a udev rule to open uinput.
Offline
oh, thanks.
No, there's no ydotool "action.id" - this isn't how polkit works.
https://wiki.archlinux.org/title/Polkit#Actions
Offline