[Telepathy] To add a new account, you first have to install a backend

Rainer Dorsch rdorsch at web.de
Mon Oct 29 19:03:18 PDT 2007


Alban,

thanks for your quick and detailed reply. Here is what I did now. I decided to 
write scripts, that the whole process is less error prone and easier to 
document:

paddy:/etc/dbus-1# 
diff -u /etc/dbus-1/session.conf /etc/dbus-1/session-gtalk.conf
--- /etc/dbus-1/session.conf    2006-11-19 17:36:43.000000000 -0500
+++ /etc/dbus-1/session-gtalk.conf      2007-10-29 21:18:47.838406638 -0400
@@ -11,6 +11,7 @@
   <listen>unix:tmpdir=/tmp</listen>

   <standard_session_servicedirs />
+  <servicedir>/opt/gtalk/share/dbus-1/services</servicedir>

   <policy context="default">
     <!-- Allow everything to be sent -->
paddy:/etc/dbus-1#

rdorsch at paddy:~/SW.nobackup/tapioca$ cat dbus-empathy
#!/bin/bash

PREFIX=/opt/gtalk
export PATH=$PREFIX/bin:$PATH
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$PREFIX/share/:/usr/share/
export 
PYTHONPATH=$PREFIX/lib/python2.5/site-packages/:/usr/lib/python2.5/site-packages/

dbus-daemon --config-file=/etc/dbus-1/session-gtalk.conf --print-address | 
tee /tmp/dbus-gtalk-rd.log
rdorsch at paddy:~/SW.nobackup/tapioca$ 

rdorsch at paddy:~/SW.nobackup/tapioca$ cat empathyloc
#!/bin/bash

export PATH=/opt/gtalk/bin:$PATH
export LD_LIBRARY_PATH=/opt/gtalk/lib:$LD_LIBRARY_PATH
export DBUS_SESSION_BUS_ADDRESS=$(head -n 1 /tmp/dbus-gtalk-rd.log)

empathy $*rdorsch at paddy:~/SW.nobackup/tapioc


Then I get

rdorsch at paddy:~/SW.nobackup/tapioca$ ./dbus-empathy
unix:abstract=/tmp/dbus-yGqJTNiuDc,guid=25b989800b06bc7b33afd50047268e37
** (process:15855): DEBUG: Could not open plugin directory: Error opening 
directory '/opt/gtalk/lib/mission-control': No such file or directory
** (process:15855): DEBUG: Could not open plugin directory: Error opening 
directory '/opt/gtalk/lib/mission-control': No such file or directory
** (process:15855): DEBUG: _mcd_mission_set_parent: child = 0x8051250, parent 
= 0x8050260
** (process:15855): DEBUG: _mcd_mission_set_parent: child = 0x8056408, parent 
= 0x8050260
** (process:15855): DEBUG: Requesting MC dbus service
** (process:15855): DEBUG: Registering MC object
** (process:15855): DEBUG: Registered MC object
** (process:15855): DEBUG: mcd_service_register_filter: Registering new filter

and

rdorsch at paddy:~/SW.nobackup/tapioca$ emacs -nw empathyloc
rdorsch at paddy:~/SW.nobackup/tapioca$ ./empathyloc
** (empathy:15853): DEBUG: mission_control_get_presence_actual: MC not 
running.
** (empathy:15853): DEBUG: mission_control_get_presence_message_actual: MC not 
running.
** (empathy:15853): DEBUG: check_for_accounts: No enabled accounts

** (empathy:15853): WARNING **: Throbber animation not found

** (empathy:15853): WARNING **: Throbber fallback animation not found either


but I did not find any account, since I still do not see any backend :-(


When I stop my standard dbus before starting the special dbus, I get the same

paddy:~# /etc/init.d/dbus stop
Stopping network events dispatcher: NetworkManagerDispatcher.
Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Stopping network connection manager: NetworkManager.
Stopping DHCP D-Bus daemon: dhcdbd.
Stopping Hardware abstraction layer: hald.
Stopping system message bus: dbus.
paddy:~# ps uaxwww|grep dbus
rdorsch   5596  0.0  0.0   4128   560 ?        Ss   Oct28   
0:00 /usr/bin/ssh-agent /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
rdorsch   5597  0.0  0.0   4128   876 ?        Ss   Oct28   
0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
rdorsch  14809  0.0  0.0   2768   356 pts/9    S    21:28   0:00 
dbus-launch --autolaunch 7f0d4f452ea9b43e54a151aaeaf30a00 --binary-syntax
root     15991  0.0  0.0   1644   560 pts/5    R+   21:56   0:00 grep dbus
paddy:~#


$ ./dbus-empathy
unix:abstract=/tmp/dbus-zMdxnT6jjS,guid=ffcf7bef12f77c5af666e60047268f8e
** (process:16102): DEBUG: Could not open plugin directory: Error opening 
directory '/opt/gtalk/lib/mission-control': No such file or directory
** (process:16102): DEBUG: Could not open plugin directory: Error opening 
directory '/opt/gtalk/lib/mission-control': No such file or directory
** (process:16102): DEBUG: _mcd_mission_set_parent: child = 0x8051250, parent 
= 0x8050260
** (process:16102): DEBUG: _mcd_mission_set_parent: child = 0x8056408, parent 
= 0x8050260
** (process:16102): DEBUG: Requesting MC dbus service
** (process:16102): DEBUG: Registering MC object
** (process:16102): DEBUG: Registered MC object
** (process:16102): DEBUG: mcd_service_register_filter: Registering new filter
                                                                                  

rdorsch at paddy:~/SW.nobackup/tapioca$ ./empathyloc
DBUS_SESSION_BUS_ADDRESS: 
unix:abstract=/tmp/dbus-zMdxnT6jjS,guid=ffcf7bef12f77c5af666e60047268f8e
** (empathy:16100): DEBUG: mission_control_get_presence_actual: MC not 
running.
** (empathy:16100): DEBUG: mission_control_get_presence_message_actual: MC not 
running.
** (empathy:16100): DEBUG: check_for_accounts: No enabled accounts
** (empathy:16100): DEBUG: check_for_accounts: No enabled accounts

** (empathy:16100): WARNING **: Throbber animation not found

** (empathy:16100): WARNING **: Throbber fallback animation not found either
** (empathy:16100): DEBUG: check_for_accounts: No enabled accounts


Seems the services are there

rdorsch at paddy:~/SW.nobackup/tapioca$ ls /opt/gtalk/share/dbus-1/services
org.freedesktop.Telepathy.ConnectionManager.gabble.service  
org.freedesktop.Telepathy.MissionControl.service  
org.gnome.Empathy.Chat.service
org.freedesktop.Telepathy.ConnectionManager.idle.service    
org.gnome.Empathy.Call.service
rdorsch at paddy:~/SW.nobackup/tapioca$ 
cat /opt/gtalk/share/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.gabble.service
[D-BUS Service]
Name=org.freedesktop.Telepathy.ConnectionManager.gabble
Exec=/opt/gtalk/bin/telepathy-gabble
rdorsch at paddy:~/SW.nobackup/tapioca$ 
cat /opt/gtalk/share/dbus-1/services/org.freedesktop.Telepathy.MissionControl.service
[D-BUS Service]
Name=org.freedesktop.Telepathy.MissionControl
Exec=/opt/gtalk/bin/mission-control
rdorsch at paddy:~/SW.nobackup/tapioca$ ls /opt/gtalk/bin/mission-control
/opt/gtalk/bin/mission-control
rdorsch at paddy:~/SW.nobackup/tapioca$


I must miss something, any idea what I should look for?

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


More information about the Telepathy mailing list