Bug 538897

Summary: Check if PolicyKit in KDE works with PackageKit
Product: [openSUSE] openSUSE 11.2 Reporter: Lubos Lunak <llunak>
Component: KDE4 WorkspaceAssignee: Lubos Lunak <llunak>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P1 - Urgent CC: binner, coolo, lnussel, vuntz, wstephenson
Version: FactoryFlags: coolo: SHIP_STOPPER-
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lubos Lunak 2009-09-14 08:21:31 UTC
According to bug #535431 PackageKit has changed to depend on a an unreleased backwards incompatible version of PolicyKit. The status of the KDE support needs to be checked. *sigh*
Comment 1 Lubos Lunak 2009-09-27 20:51:43 UTC
https://www.redhat.com/archives/fedora-devel-list/2009-August/msg01353.html

Short summary:
Retards.

Long summary:
Polkit-1 basically does not work anywhere else except for development versions of distributions. There does not seem to be any porting documentation. Upstream (KDE) has no support for it at all because of these. Fedora itself has no KDE support for it (there is a patch, but it has issues and is most probably unfeasible). Fedora has decided to drop PolicyKit support from KDE for next Fedora release and will use the GNOME PolicyKit authentication agent in the KDE session (unlike us Fedora's KDE actually does not have basic functionality depending on PolicyKit).

So basically the two feasible options for us seem to be either doing that as well (ugh) or going back to PackageKit version that does not require Polkit-1.
Comment 2 Ludwig Nussel 2009-09-28 08:59:50 UTC
does the gnome authentication agent actually depend on anything gnome? Maybe it's just a plain gtk app. That could be used in KDE without disadvantages.
Comment 3 Stephan Kulow 2009-09-28 09:16:39 UTC
ok, as far as I see, we have 3 options:

1. GNOME application on KDE
2. Unmaintained packagekit snapshot
3. Unmaintained updater backend

Taking these 3 options I would go for 1. Vincent's suggestion on the conference was taking the gnome version and ripping off all GNOME UI dependencies, but in the end polkit-gnome has no dependencies beside the -lang subpackage that aren't yet on the KDE Livecd: 388Kb (including -lang).

Unfortunately the test updates can still not be installed on current live cds with polkit-gnome installed, but I guess that's something we can fix for m8.
Comment 4 Lubos Lunak 2009-09-28 14:32:01 UTC
I'm not happy with 1., but it seems to be the only reasonable solution :( , so what the hell.

Vincent: SR#21219 - please review, accept and forward to o:F. It enables the GNOME polkit authentication agent also in KDE and fixes two rather visible annoyances.
Comment 5 Ludwig Nussel 2009-09-28 14:39:29 UTC
I'd remove the OnlyShowIn line completely. The agent is needed in other DE's too.
Comment 6 Vincent Untz 2009-09-29 09:44:45 UTC
(In reply to comment #4)
> Vincent: SR#21219 - please review, accept and forward to o:F.

Can't find you on IRC, so let me comment here:

 + please use the patch naming and tagging policy (see http://en.opensuse.org/Packaging/Patches)

 + why is fix_status_icon_hide.diff necessary? What's happening at the moment?

 + did you send alternative_button_order.diff upstream?

 + I agree with Ludwig about OnlyShowIn, so use_in_kde.diff needs to be changed to simply comment out the OnlyShowIn line.
Comment 7 Stephan Kulow 2009-09-29 10:17:30 UTC
can we have that policy discussion after we were able to ship M8?
Comment 8 Stephan Kulow 2009-09-29 12:48:44 UTC
ok, the main issue is fixed - leaving the bug open to short out Vincent's concerns.
Comment 9 Lubos Lunak 2009-09-30 13:52:29 UTC
(In reply to comment #6)
>  + why is fix_status_icon_hide.diff necessary? What's happening at the moment?

The "Click the icon to drop all elevated privileges" systray icon does not go away when clicked, the icon itself is no longer visible, but the space is still taken. Possibly a GtkStatusIcon bug, I don't know.

>  + did you send alternative_button_order.diff upstream?

No. I want to avoid the possibility of mentioning by the way what I think about certain aspects of PolicyKit. The patch shouldn't matter much post-11.2 anyway, hopefully some poor soul will figure out the KDE agent even with the useless documentation.

> 

Submitted again (#21419), closing.
Comment 10 Bernhard Wiedemann 2016-04-15 09:52:05 UTC
This is an autogenerated message for OBS integration:
This bug (538897) was mentioned in
https://build.opensuse.org/request/show/21331 Factory / polkit-gnome
https://build.opensuse.org/request/show/40729 Factory / patterns-openSUSE