I saw this while porting Nautilus, and its use of PK, to GDBus.
Minimal test case (I'm on F14 rawhide with latest updates):
- open 'd-feet'
- open 'gpk-dbus-service -v'
- from d-feet, invoke the 'org.fd.PK.Modify.InstallMimeTypes' method with pretty much any args (0, ['text/plain'], '' is fine for reproducing the bug)
I'd expect to see a list of installable applications that support 'text/plain', but PK searches its database and then just quits.
On further examination of the (attached) gpk-dbus-service verbose log, it seems the UI with the list of installable applications is actually created, but somehow, a click is detected and the UI goes away before it's shown.
Created attachment 35957 [details]
gpk-dbus-service -v log
Eeeek. You've found a bug, apologies:
Author: Richard Hughes <email@example.com>
Date: Tue Jun 1 14:08:49 2010 +0100
Ensure we wait for the users respnse when an application uses InstallMimeTypes. Fixes #28323
:100644 100644 00dce66... 014dfef... M src/gpk-dbus-task.c
I've pushed this to master and gnome-2-30.
This should be fixed now, thanks!