# HG changeset patch # User Richard Laager # Date 1139635547 0 # Node ID ac5bc9a7b6031bba3bd268bb55050aeb89a23037 # Parent d0f7f698b6de59d5d84ad48cb87321de0f16e8ff [gaim-migrate @ 15584] SF Patch #1428582 from Casey Harkins "The dbus stuff in gaim is using the namespace org.gaim. gaim.org is obviously not associated with gaim and chances are they would never need the dbus namespace. Regardless, it would probably be better if gaim used net.sf.gaim for the namespace. It'd be easier to change now than after 2.0 is released since things might start depending on gaim's dbus api. The dbus spec and tutorial both suggest/imply (though don't strictly require) that the namespace coorespond to a domain name that you own." committer: Tailor Script diff -r d0f7f698b6de -r ac5bc9a7b603 src/Makefile.am --- a/src/Makefile.am Sat Feb 11 05:24:30 2006 +0000 +++ b/src/Makefile.am Sat Feb 11 05:25:47 2006 +0000 @@ -241,7 +241,7 @@ gaim.service: echo "[Gaim]" > $@ - echo "Name=org.gaim.GaimService" >> $@ + echo "Name=net.sf.gaim.GaimService" >> $@ echo "Exec=$(bindir)/gaim" >> $@ #Ideally, this directory should be autodetected, and the user should diff -r d0f7f698b6de -r ac5bc9a7b603 src/dbus-gaim.h --- a/src/dbus-gaim.h Sat Feb 11 05:24:30 2006 +0000 +++ b/src/dbus-gaim.h Sat Feb 11 05:25:47 2006 +0000 @@ -24,8 +24,8 @@ #ifndef _DBUS_GAIM_H_ #define _DBUS_GAIM_H_ -#define DBUS_SERVICE_GAIM "org.gaim.GaimService" -#define DBUS_PATH_GAIM "/org/gaim/GaimObject" -#define DBUS_INTERFACE_GAIM "org.gaim.GaimInterface" +#define DBUS_SERVICE_GAIM "net.sf.gaim.GaimService" +#define DBUS_PATH_GAIM "/net/sf/gaim/GaimObject" +#define DBUS_INTERFACE_GAIM "net.sf.gaim.GaimInterface" #endif /* _DBUS_GAIM_H_ */ diff -r d0f7f698b6de -r ac5bc9a7b603 src/dbus-gaim.service --- a/src/dbus-gaim.service Sat Feb 11 05:24:30 2006 +0000 +++ b/src/dbus-gaim.service Sat Feb 11 05:25:47 2006 +0000 @@ -1,5 +1,5 @@ [D-BUS Service] -Name=org.gaim.GaimService +Name=net.sf.gaim.GaimService #replace this by the path to the gaim executable in your system Exec=/home/pz215/projects/gaim/src/gaim diff -r d0f7f698b6de -r ac5bc9a7b603 src/dbus-server.c --- a/src/dbus-server.c Sat Feb 11 05:24:30 2006 +0000 +++ b/src/dbus-server.c Sat Feb 11 05:25:47 2006 +0000 @@ -119,7 +119,7 @@ gint id = gaim_dbus_pointer_to_id(ptr); if (ptr != NULL && id == 0) - dbus_set_error(error, "org.gaim.ObjectNotFound", + dbus_set_error(error, "net.sf.gaim.ObjectNotFound", "The return object is not mapped (this is a Gaim error)"); return id; @@ -131,7 +131,7 @@ gpointer ptr = gaim_dbus_id_to_pointer(id, type); if (ptr == NULL && id != 0) - dbus_set_error(error, "org.gaim.InvalidHandle", + dbus_set_error(error, "net.sf.gaim.InvalidHandle", "%s object with ID = %i not found", typename, id); return ptr; diff -r d0f7f698b6de -r ac5bc9a7b603 src/gaim-notifications-example.py --- a/src/gaim-notifications-example.py Sat Feb 11 05:24:30 2006 +0000 +++ b/src/gaim-notifications-example.py Sat Feb 11 05:25:47 2006 +0000 @@ -66,15 +66,15 @@ bus = dbus.SessionBus() -obj = bus.get_object("org.gaim.GaimService", "/org/gaim/GaimObject") -gaim = dbus.Interface(obj, "org.gaim.GaimInterface") +obj = bus.get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject") +gaim = dbus.Interface(obj, "net.sf.gaim.GaimInterface") bus.add_signal_receiver(receivedimmsg, - dbus_interface = "org.gaim.GaimInterface", + dbus_interface = "net.sf.gaim.GaimInterface", signal_name = "ReceivedImMsg") bus.add_signal_receiver(buddysignedon, - dbus_interface = "org.gaim.GaimInterface", + dbus_interface = "net.sf.gaim.GaimInterface", signal_name = "BuddySignedOn") print """This is a simple gaim notification server. diff -r d0f7f698b6de -r ac5bc9a7b603 src/gaim-remote.py --- a/src/gaim-remote.py Sat Feb 11 05:24:30 2006 +0000 +++ b/src/gaim-remote.py Sat Feb 11 05:25:47 2006 +0000 @@ -9,8 +9,8 @@ xml.dom.minidom.Element.all = xml.dom.minidom.Element.getElementsByTagName -obj = dbus.SessionBus().get_object("org.gaim.GaimService", "/org/gaim/GaimObject") -gaim = dbus.Interface(obj, "org.gaim.GaimInterface") +obj = dbus.SessionBus().get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject") +gaim = dbus.Interface(obj, "net.sf.gaim.GaimInterface") class CheckedObject: def __init__(self, obj): diff -r d0f7f698b6de -r ac5bc9a7b603 src/gaim-send --- a/src/gaim-send Sat Feb 11 05:24:30 2006 +0000 +++ b/src/gaim-send Sat Feb 11 05:25:47 2006 +0000 @@ -27,6 +27,6 @@ fi shift -dbus-send --dest=org.gaim.GaimService --print-reply --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@" +dbus-send --dest=net.sf.gaim.GaimService --print-reply --type=method_call /net/sf/gaim/GaimObject net.sf.gaim.GaimInterface.$METHOD_NAME "$@" echo diff -r d0f7f698b6de -r ac5bc9a7b603 src/gaim-send-async --- a/src/gaim-send-async Sat Feb 11 05:24:30 2006 +0000 +++ b/src/gaim-send-async Sat Feb 11 05:25:47 2006 +0000 @@ -25,6 +25,6 @@ fi shift -dbus-send --dest=org.gaim.GaimService --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@" +dbus-send --dest=net.sf.gaim.GaimService --type=method_call /net/sf/gaim/GaimObject net.sf.gaim.GaimInterface.$METHOD_NAME "$@" echo