polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
51 stars 30 forks source link

Is there a way of setting runtime dir when running pkexec #197

Open polkit-github-migration-bot opened 1 year ago

polkit-github-migration-bot commented 1 year ago

In gitlab.freedesktop.org by joantolo on May 5, 2023, 18:31

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/196 I'm trying to use pkexec to configure gsettings of gdm user, but it doesn't set XDG_RUNTIME_DIR so it fails.

Is it possible to have an option or some workaround to use pam_systemd to allow this?