GNOME Bugzilla – Bug 576630
Keyring should launch itself when needed
Last modified: 2019-02-22 11:46:46 UTC
Please describe the problem: I have a fresh install of K-jaunty, and I installed Empathy. Now, when I launch empathy, it refuses to connect my accounts because keyring-daemon is not working. If I type "gnome-keyring-daemon" in a terminal and then relaunch Empathy, then it works fine. Thus I do suppose that there are two ways to help : 1. make Empathy check if the daemon is launched before to connect the accounts 2. make the daemon launch itself when it is requested. I experience it with Jaunty, but it was more or less the same with Hardy : when I have a Kubuntu basis, the gnome-keying-daemon makes troubles. Steps to reproduce: 1. Install kubuntu (Jaunty) 2. Install Empathy (apt-get install empathy) 3. launch empathy Actual results: Empathy launch itself correctly, but stays unconnected (gray square icon instead of green circular one) Expected results: I would like Empathy to connect Does this happen every time? Everytime Other information: I filled the bug here : https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/344444 Seb128 asked me to open the bug here.
As far as I know, I have dbus launched : 23:15:57 ~ >$ ps aux|grep dbus 73:103 2382 0.6 0.0 2940 1260 ? Ss 23:14 0:00 /bin/dbus-daemon --system 98:root 3009 0.0 0.0 3144 700 ? S 23:14 0:00 dbus-launch --autolaunch 49a66490352c0ab670f9329349beda67 --binary-syntax --close-stderr 99:root 3010 0.0 0.0 2672 748 ? Ss 23:14 0:00 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session 101:kusbiste 3146 0.0 0.0 4784 604 ? Ss 23:15 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde 102:kusbiste 3149 0.0 0.0 3144 700 ? S 23:15 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde 103:kusbiste 3150 0.6 0.0 2936 1120 ? Ss 23:15 0:00 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session (ksbiste is my user name) At this moment, if I launch Empathy, I get this, and I cannot connect my accounts: 23:16:13 ~ >$ empathy ** (empathy:3384): DEBUG: mission_control_get_presence_actual: MC not running. ** (empathy:3384): DEBUG: mission_control_get_presence_message_actual: MC not running. (empathy:3384): libebook-WARNING **: Can't find installed BookFactories (empathy:3384): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed ** (empathy:3384): DEBUG: mission_control_get_presence_actual: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_presence_actual: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_presence_actual: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_presence_actual: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_connection_status: MC not running. ** (empathy:3384): DEBUG: mission_control_get_online_connections: MC not running. ** (empathy:3384): DEBUG: mission_control_get_tpconnection: MC not running. ** (empathy:3384): DEBUG: mission_control_get_tpconnection: MC not running. (in particular, the keyring do not ask me any passwords) After having manually launched gnome-keyring-daemon, Empathy works fine, but with the same complaining about "MC not running".
Is "MC" a part of empathy? gnome-keyring has no such component. It's odd that gnome-keyring-daemon isn't being started, usually it activates itself as a Dbus service automatically, as you would expect. Does the following file exist on your system? /usr/share/dbus-1/services/org.gnome.keyring.service
Yes, I have that file. ------------ $> cat /usr/share/dbus-1/services/org.gnome.keyring.service [D-BUS Service] Name=org.gnome.keyring Exec= gnome-keyring-daemon --foreground --components=keyring --------------- I would like to insist on the fact that my system is a KDE one : I installed gnome-keyring and Empathy after. So I don't think that the keyring is supposed to be well configured on the first strike. As far as I know, "MC" (stands for "Mission Control" by Nokia) is not part of Empathy : MC is a backend. I believe that it is not related to the problem; I just added it sake of completeness.
Thanks for the research. I think you'll find that adding the full path to gnome-keyring-daemon will make this work properly. I'll commit a fix to this effect to gnome-keyring. That is: Exec=/usr/bin/gnome-keyring-daemon --foreground --components=keyring