You are not logged in.

#1 2023-12-25 06:14:37

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

[SOLVED] Find what is action.id of ydotool for polkit.rules?

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

#2 2023-12-25 09:57:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,046

Re: [SOLVED] Find what is action.id of ydotool for polkit.rules?

"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

#3 2024-01-11 01:28:41

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] Find what is action.id of ydotool for polkit.rules?

oh, thanks.

No, there's no ydotool "action.id" - this isn't how polkit works.
https://wiki.archlinux.org/title/Polkit#Actions

Offline

Board footer

Powered by FluxBB