After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 572343 - 2.15.x breaks polkit-gnome-authorization
2.15.x breaks polkit-gnome-authorization
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: .General
2.15.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-02-18 23:43 UTC by Chris Coulson
Modified: 2009-08-12 12:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Chris Coulson 2009-02-18 23:43:54 UTC
Please describe the problem:
With gtk version 2.15.4, I cannot change the default system policy using polkit-gnome-authorization, as it never displays the authentication dialog when I want to save my changes.

This is running Ubuntu Jaunty.

If I download the libgtk package built for Intrepid (2.14.4) and then extract the contents of /usr/lib/ to my desktop and then run "LD_PRELOAD=~/Desktop/lib/libgtk-x11-2.0.so.0 polkit-gnome-authorization", then it behaves as expected.

Steps to reproduce:
1. Open polkit-gnome-authorization.
2. Edit an implicit authorization.
3. Click on the Modify button.


Actual results:
Nothing happens

Expected results:
I expect an authentication dialog to appear

Does this happen every time?
Yes, but it works when running it with an older gtk version

Other information:
Comment 1 Matthias Clasen 2009-02-19 00:01:24 UTC
Works fine here, with 2.15.4. 
I believe Richard committed some fixed for polkit-gnome. 
Maybe your distribution did not pick those up yet...
Comment 2 Chris Coulson 2009-02-19 00:12:30 UTC
Hi Matthias,

Our 2.15.4 version contains some fixes for polkit-gnome. I'll do some more digging around to see if i can isolate what's actually going wrong.
Comment 3 Chris Coulson 2009-02-20 16:28:56 UTC
If it is any use, I ran polkit-gnome-authorization through GDB, and set a breakpoint at polkit-gnome-authorization.c:1267, which is the gtk_widget_destroy() which is called straight after gtk_dialog_run() returns. This shows that when I press the "Modify" button in the dialog, gtk_dialog_run() never actually returns (but it returns ok if I press cancel instead).

I don't know if that's any use to you though Matthias
Comment 4 Matthias Clasen 2009-02-20 16:40:15 UTC
I am not talking about fixes in gtk. I am talking about polkit-gnome fixes that you are missing.
Comment 5 Chris Coulson 2009-02-20 17:05:00 UTC
Ah, I think I misunderstood you before.

Our version of policykit-gnome is only 0.9. I'm going to try a newer version this afternoon
Comment 6 Chris Coulson 2009-02-23 12:18:49 UTC
I tried with policykit-gnome 0.9.2 and that exhibited the same issue. I haven't tried with the latest code from SVN yet as it needs EggDBus
Comment 8 Chris Coulson 2009-02-23 18:28:06 UTC
Thanks Matthias. James Westby tested our version of policykit-gnome with the Fedora patch applied, and has confirmed that it works.
Comment 9 Paolo Borelli 2009-08-12 12:46:36 UTC
I guess this can be closed then...