Created attachment 868675 [details] Emerge Info Running pkexec as a substitute for sudo or doas (I personally use doas but I noticed this behavior about pkexec) causes an issue if you use commands using relative context; an example: cd /tmp pkexec mkdir -p somefolder/subfolder Will actually cause polkit to make folders in /root rather than where the command was ran from; this isn't ideal behavior for an authentication program
Please report this upstream and link it here.
Here's the new upstream report: https://gitlab.freedesktop.org/polkit/polkit/-/issues/204
https://github.com/polkit-org/polkit/issues/205