I'm writing a program that requires root access. I'm hoping to use
polkit for privilege escalation instead of just erroring out when the program is not run from root or via sudo.
Is polkit used on all major linux distributions? If not, is there some other generic way to ask for privilege escalation on linux?
Is polkit the only way do do this?: