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 673605 - Using gdbus against ConsoleKit produces /var/log/messages spam
Using gdbus against ConsoleKit produces /var/log/messages spam
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-05 19:59 UTC by Owen Taylor
Modified: 2015-02-27 05:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2012-04-05 19:59:29 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=809213
https://bugzilla.redhat.com/show_bug.cgi?id=810052#c8

Apparently, creating a GDBus proxy for ConsoleKit causes GDBus automatically to try and list properties, but ConsoleKit is configured in its installed policy to reject that. This produces messages in /var/log/messages:

Apr  1 14:27:54 jik2 dbus-daemon[834]: dbus[834]: [system] Rejected send message, 2 matched rules;  type="method_call", sender=":1.112" (uid=3009 pid=3770 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.19" (uid=0 pid=2316 comm="/usr/sbin/console-kit-daemon --no-daemon ")

Using  G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES when creating the proxy would fix this, but there's no way to wedge that into:
 
 const ConsoleKitSessionProxy = Gio.DBusProxy.makeProxyWrapper(ConsoleKitSessionIface);

Using new Gio.DBusProxy as is done a couple of places in the shell would allow fixing this, but it seems like there should be a way to pass flags when using the convenience form, since the full form is pretty ugly.

(So perhaps we should uglify things in the gnome-3-4 branch but do something better with a GJS API addition for the master branch.)
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-04-05 20:04:31 UTC
When working on GObject Inheritance, Giovanni built new GDBus wrappers. Colin didn't want to land them, so they're stuck in limbo at bug #669350. They allow "slim proxies" which is what you want.
Comment 2 Colin Walters 2012-04-05 20:21:56 UTC
The problem isn't new ones exactly, it's removing the old ones.  We just need to be sure that we've ported the users inside GNOME at least (gnome-documents, gnome-shell?)
Comment 3 Florian Müllner 2015-02-27 05:22:31 UTC
We no longer use ConsoleKit, so marking as obsolete.