FS#34682 - [polkit-gnome] should autostart only in gnome-fallback session

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Monday, 08 April 2013, 14:46 GMT
Last edited by Laurent Carlier (lordheavy) - Tuesday, 03 September 2013, 19:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Currently there are more than one GNOME session provide a polkit authentication agent itself (gnome, cinnamon, cinnamon2d, gnome-classic), and starting polkit-gnome-authentication-agent in these sessions may lead to race condition. E.g. the polkit-gnome-authentication-agent register itself before Cinnamon could do this with its own client.

So please revert this commit and use 'AutostartCondition=GNOME3 if-session gnome-fallback' again:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/polkit-gnome&id=0ad461cc2ee7e17b2e63d5d098b6b820919e98bf

Additional info:
* package version(s)
polkit-gnome 0.105-1
cinnamon 1.7.3-2

Steps to reproduce:
Start cinnamon session with and without gnome-polkit installed, and try to run a privileged action, e.g. 'pkexec true'.
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Tuesday, 03 September 2013, 19:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  polkit-gnome 0.105-2
Comment by Balló György (City-busz) - Thursday, 11 April 2013, 00:17 GMT
Now the gnome-fallback session has been renamed to gnome-flashback, so I request the following condition:
AutostartCondition=GNOME3 if-session gnome-flashback
Comment by Jan de Groot (JGC) - Wednesday, 17 April 2013, 14:14 GMT
Can't we just nuke the desktop file? Upstream doesn't include the file anymore and we added it to svn for desktops that need it. Looking at gnome, gdm already launches polkit-gnome for the fallback session. Don't know how and if XFCE handles this though.
Comment by Jan de Groot (JGC) - Monday, 10 June 2013, 12:36 GMT
To answer my own question: we should nuke the desktop file like upstream has done already. xfce4-session will have to add the desktop file with xfce4 prefix which only starts polkit-gnome inside XFCE. This is how Fedora solves it (look at their xfce4-session pkg for example) and is the way upstream intended this change.
Comment by Balló György (City-busz) - Monday, 02 September 2013, 13:56 GMT
Now I have made the following changes:

- gnome-polkit is no longer autostarted, the .desktop file is installed into /usr/share/applications/ directory. I had to keep the .desktop file for the gnome-flashback-session.

- gnome-polkit is added to the required components of gnome-flashback-session, so GNOME Flashback users are won't be affected by this change.

- lxpolkit added to the [community] repository as a lightweight alternative to polkit-gnome. It autostarts everywhere except in GNOME and KDE. It's the suggested agent for Xfce and LXDE. It's part of the lxde group.

- An overview about the available polkit authentication agents is added to polkit's wiki page: https://wiki.archlinux.org/index.php/Polkit#Authentication_agents

Loading...