With the latest release of polkit, run0 has a feature similar to sudo where privilege is retained in the same terminal session for 5 minutes.
This does not work for run0edit, and based on the discussion in polkit-org/polkit#533 I think this is intentional. I suspect either the subshell restriction will have to be relaxed, otherwise run0edit with privesc retention cannot be implemented in a script and will have to be implemented directly in run0 (e.g. as a run0 -e flag) so the direct parent process is the controlling terminal.
With the latest release of polkit, run0 has a feature similar to sudo where privilege is retained in the same terminal session for 5 minutes.
This does not work for run0edit, and based on the discussion in polkit-org/polkit#533 I think this is intentional. I suspect either the subshell restriction will have to be relaxed, otherwise run0edit with privesc retention cannot be implemented in a script and will have to be implemented directly in run0 (e.g. as a
run0 -eflag) so the direct parent process is the controlling terminal.