[Telepathy] mission control not implementing prefixes properly

Rainer Dorsch rdorsch at web.de
Thu Nov 1 07:11:00 PDT 2007


Alban,

thanks again for the very detailled response.

Am Dienstag, 30. Oktober 2007 15:19 schrieb Alban Crequy:
> On 10/30/07, Rainer Dorsch <rdorsch at web.de> wrote:
> > --->8--- skip
> > I followed you steps until here (I did not remove the
> > standard_session_servicedirs because I have no default telepathy
> > installation), stopped my standard dbus, and started dbus as root with
> > the new config file:
>
> You should not stop your standard D-Bus daemon because it is used by
> others applications. You should not start your new instance of the
> D-Bus daemon with root, but with the same user as Empathy and MC.
>
> According to "man dbus-daemon":
>        There are two standard  message  bus  instances:  the  sys‐
>        temwide message bus (installed on many systems as the "mes‐
>        sagebus" init service) and the per-user-login-session  mes‐
>        sage  bus  (started each time a user logs in).  dbus-daemon
>        is used for both of these instances, but with  a  different
>        configuration file.
>
> The D-Bus session Empathy or MC use is the per-user-login session, or
> if you want to test in a separate session, the D-Bus session you start
> manually. In both cases, the Empathy/MC processes and the dbus-daemon
> process should belong to the same user.
>
> D-Bus denies the connection if you don't start the D-Bus daemon and
> Empathy from the same user. This policy is written in the D-Bus
> configuration file and should not be changed.

yes, that helps. This makes mission control starting:

rdorsch at paddy:~/SW.nobackup/tapioca$ ps uaxwww|grep mission
rdorsch  23435  0.1  0.1   4196  2456 pts/14   S+   20:38   
0:00 /opt/gtalk/bin/mission-control
rdorsch  23438  0.0  0.0   1636   552 pts/16   S+   20:38   0:00 grep mission
rdorsch at paddy:~/SW.nobackup/tapioca$

That is one step ahead :-)

I was hoping this was the last one, but there is another in front of me, 
empathy (mission-control in this case?) still does not find any plugin:

rdorsch at paddy:~/SW.nobackup/tapioca$ ./empathyloc
PREFIX=/opt/gtalk
+ PREFIX=/opt/gtalk
export PATH=$PREFIX/bin:$PATH
+ export 
PATH=/opt/gtalk/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
+ PATH=/opt/gtalk/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH=/opt/gtalk/lib:
+ LD_LIBRARY_PATH=/opt/gtalk/lib:
export DBUS_SESSION_BUS_ADDRESS=$(head -n 1 /tmp/dbus-gtalk-rd.log)
head -n 1 /tmp/dbus-gtalk-rd.log
++ head -n 1 /tmp/dbus-gtalk-rd.log
+ export 
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3YOYhR2bBZ,guid=0e637cf002bef87f22a223004727cff8
+ 
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3YOYhR2bBZ,guid=0e637cf002bef87f22a223004727cff8
echo DBUS_SESSION_BUS_ADDRESS: $DBUS_SESSION_BUS_ADDRESS
+ echo DBUS_SESSION_BUS_ADDRESS: 
unix:abstract=/tmp/dbus-3YOYhR2bBZ,guid=0e637cf002bef87f22a223004727cff8
DBUS_SESSION_BUS_ADDRESS: 
unix:abstract=/tmp/dbus-3YOYhR2bBZ,guid=0e637cf002bef87f22a223004727cff8
EMPATHY_DEBUG=all empathy $*
+ EMPATHY_DEBUG=all
+ empathy
** (empathy:13805): DEBUG: mission_control_get_presence_actual: MC not 
running.
** (empathy:13805): DEBUG: mission_control_get_presence_message_actual: MC not 
running.
Idle: Failed to get system bus: Failed to connect to 
socket /var/run/dbus/system_bus_socket: No such file or directory
Idle: Failed to get nm proxy
Idle: Changing presence to (null) (2)
** (empathy:13805): DEBUG: check_for_accounts: No enabled accounts
EmpathyMain: Try to add a salut account...
EmpathyMain: Salut not installed
** (empathy:13805): DEBUG: check_for_accounts: No enabled accounts
Geometry: Loading window geometry: x:1125, y:57, w:225, h:325

MainWindow: Configuring window default size w:225, h:325
MainWindow: Configuring window default position x:1125, y:57

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

** (empathy:13805): WARNING **: Throbber fallback animation not found either
Config: Setting bool:'/apps/empathy/ui/main_window_hidden' to 0 ---> false
StatusIcon: No enabled account, Showing account dialog
Geometry: Saving window geometry: x:1125, y:57, w:225, h:325

This is the dbus_daemon output:

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

Does anybody have insight why the telepathy-gabble plugin is not found? 


> --->8--- skip
> Well, it is easier to install distribution packages or install without
> a prefix :-)

I agree. But I want to have the install directory and the rest of the system 
(managed by apt) separated completely. And I hope that if I get it build it 
helps some Nokia Internet Tablet owners to just copy it onto their system an 
jabber to their Nokias from their Desktop.

>
> You can read documentation about D-Bus activation:
> http://www.freedesktop.org/wiki/IntroductionToDBus#head-900e59c577277516e6d
>8d8a3afbb30beff4794bd
>
> And then check which files are installed in theses directory:
> - /usr/share/dbus-1/services/
> - /usr/local/share/dbus-1/services/
> - $PREFIX/share/dbus-1/services/


rdorsch at paddy:~$ ls /usr/share/dbus-1/services/
dhcdbd.service  org.freedesktop.Notifications.service
rdorsch at paddy:~$ ls /usr/local/share/db*
ls: /usr/local/share/db*: No such file or directory
rdorsch at paddy:~$ ls /opt/gtalk/share/dbus-1/services/
org.freedesktop.Telepathy.ConnectionManager.gabble.service  
org.freedesktop.Telepathy.MissionControl.service
org.freedesktop.Telepathy.ConnectionManager.idle.service    
org.gnome.Empathy.Call.service
org.freedesktop.Telepathy.ConnectionManager.salut.service   
org.gnome.Empathy.Chat.service
rdorsch at paddy:~$


> (and remove the files you installed as a workaround in ~/.local/share/)

I did not have dbus-1 files in ~/.local/share. But I need

cp -ra /opt/gtalk/share/mission-control/ ~/.local/share/

otherwise empathy segfaults.


I wrote a wrapper around mission-control which straces mission control. The 
output is at http://bokomoko.de/~rd/mission-control.strace


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