emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to register dbus method


From: Lluís
Subject: Unable to register dbus method
Date: Wed, 12 Dec 2012 15:55:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

After getting a working implementation for providing GNOME Shell's calendar
widget with info from org-mode events, it looks like this suddenly stopped
working:

#v+
(dbus-register-method :session
                      "org.gnome.Shell.CalendarServer"
                      "/org/gnome/Shell/CalendarServer"
                      "org.gnome.Shell.CalendarServer"
                      "GetEvents"
                      'ogc:--dbus-get-events)
#v-

The callback never gets invoked, while "dbus-monitor" shows a method call is
actually sent by the widget, but only the evolution server responds to it:

#v+
method call sender=:1.17 -> dest=:1.52 serial=309 
path=/org/gnome/Shell/CalendarServer; interface=org.gnome.Shell.CalendarServer; 
member=GetEvents
   int64 1353928320
   int64 1357557120
   boolean true
method call sender=:1.52 -> dest=:1.41 serial=27 
path=/org/gnome/evolution/dataserver/Calendar/3912/6; 
interface=org.gnome.evolution.dataserver.Calendar; member=open
   boolean true
method return sender=:1.41 -> dest=:1.52 reply_serial=27
   uint32 18
signal sender=:1.41 -> dest=(null destination) serial=97 
path=/org/gnome/evolution/dataserver/Calendar/3912/6; 
interface=org.gnome.evolution.dataserver.Calendar; member=readonly
   boolean false
signal sender=:1.41 -> dest=(null destination) serial=98 
path=/org/gnome/evolution/dataserver/Calendar/3912/6; 
interface=org.gnome.evolution.dataserver.Calendar; member=online
   boolean true
signal sender=:1.41 -> dest=(null destination) serial=99 
path=/org/gnome/evolution/dataserver/Calendar/3912/6; 
interface=org.gnome.evolution.dataserver.Calendar; member=opened
   array [
      string "org.gnome.evolution.dataserver.Calendar.NoSuchCal"
      string "No existeix el calendari"
   ]
signal sender=:1.41 -> dest=(null destination) serial=100 
path=/org/gnome/evolution/dataserver/Calendar/3912/6; 
interface=org.gnome.evolution.dataserver.Calendar; member=open_done
   uint32 18
   string "org.gnome.evolution.dataserver.Calendar.NoSuchCal"
   string "No es pot obrir el calendari: No existeix el calendari"
method return sender=:1.52 -> dest=:1.17 reply_serial=309
   array [
   ]
#v-

Is it maybe that evolution registered for that method first and thus further
registrations simply take no effect? If so, why was this not happening before?

I'm using emacs-snapshot version 2:20121209-1.

For the curious, code is available at
https://github.com/llvilanova/org-gnome-calendar.


Thanks,
  Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]