<div dir="auto"><div dir="auto">><span style="font-family:sans-serif">It was pointed out in D6198 that </span></div><div dir="auto"><span style="font-family:sans-serif">>there's </span></div><div dir="auto"><span style="font-family:sans-serif">>no such thing as persistence in</span></div><span style="font-family:sans-serif">>polkit,</span><div dir="auto"><font face="sans-serif"><br></font><div dir="auto"><font face="sans-serif">Persistence =session or always both are same and will cache the password for 5 mins. <br></font><div dir="auto"><br></div><div dir="auto">><span style="font-family:sans-serif">however as David mentioned, we don't </span></div><div dir="auto"><span style="font-family:sans-serif">>want the authorization to last</span></div><span style="font-family:sans-serif">>the whole session</span></div><div dir="auto"><font face="sans-serif"><br></font><div dir="auto">In response to David's comment I added the code for warning dialogs. Untill the warning dialog is shown the helper won't be called. So privilege execution is not possible in unit tests and background jobs.<br></div><div dir="auto">TBH I can't see how any application will bypass the prompt. Maybe I am wrong. Can you elaborate on the potential risks?<br>
<div dir="auto"><br></div></div></div></div></div>