After upgrading to Mageia 4, the authentication when i open mcc is not memorised as before. I don't have the yellow icon in the system tray and every time i want to open mcc i have to log as root. I suppose that it is related to this change: https://wiki.mageia.org/en/Mageia_4_Release_Notes#Authentication Reproducible: Steps to Reproduce:
It should depends of the polkit agent. Which one are you using ?
CC: (none) => mageia
Yeah, the auth should definitely be kept. We use the auth_admin_keep and auth_user_keep (not the _keep) settings for polkit. The icon may not be displayed always now (it's up to the polkit agent in question to implement the icon), and also the authorisation should be per-app IIRC, not global, but launching two MCC's here in quick succession certainly only asks me for my password once.
I have polkit-agent-kde and every time i open mcc it asks the password Is there any process that i have to verify if it is running ?
Perhaps this implementation does not honour the *_keep. I had previously assumed that it wasn't the job of the agent to honour this so I'll look into it. It's certainly not a problem on GNOME. One thing you could try for giggles, is to kill the KDE process for the agent and run the mate-polkit agent instead (you can just do this in a terminal in a running KDE session as your regular user). If this "remembers" things better then it's a bug in the KDE agent I'd say.
Thanks Collin, with mate-polkit it works fine, and i have the key-icon in the system tray. How i could use definitely the mate-polkit instead of the once for kde ? (i'm running kde although)
To use a different component here you'll need to override both KDE and MATE .desktop files. 1. Copy /usr/share/autostart/polkit-kde-authentication-agent-1.desktop to /etc/xdg/autostart/ and edit it such that it read OnlyShowIn=XXX (or some other value that != KDE). 2. Edit /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop (I really don't like it's in /etc tree by default...) and include KDE in the OnlyShowIn= line with the others. That should do it, but really we need to fix the problem under KDE. Neoclust, is this something you'd be able to poke at?
Oh and I should say the "icon" is purely an implementation detail. The Mate folks have it, but other Desktop's don't. This is not a requirement to remembering the auth.
Summary: Root authentication is not temporised in Mageia 4 => KDE polkit agent does not remember auth.
I tried to revert the changes in comment 6 and now the temporisation of the authentication it works with kde-polkit (but no icon in system tray). I will check after some reboots if it still works
It works for me now with the kde-polkit too, maybe something triggered after the revert
Status: NEW => RESOLVEDResolution: (none) => WORKSFORME