I have an system-setup-and-update script that sets up some stuff in the OS and runs pamac a couple of times. I know that running pamac with sudo is out of the question, since I use it to sync AUR packages.
Can I setup polkit so that it won’t prompt me for passwords? I want to just input my password once when I run the script. Ideally, that exception would only be active when I’m running the script; normal pamac use should still prompt for password.
If running my script from a different user would do it, then I’d like to set that up. But again, I’d need to configure polkit so that I don’t always get prompted to choose the user when running pamac (it’s really annoying when I have multiple users).