<div dir="ltr">Hi, <div>Many X applications require root privileges, but at the same time want to keep the original $USER env variable.<br></div><div><br></div><div>This option (see attached patch), while preserving the sanitized environment, and also while still honoring the org.freedesktop.policykit.exec.allow_gui annotate key : allow the user to preserve the $USER environment variable.</div><div><br></div><div>I believe, this option is both safe, clean, and a must have for pkexec.</div><div><br></div><div>All the best</div><div><br></div><div>JP</div></div>