From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Issue connecting Emacs --daemon to D-BUS Date: Thu, 27 Sep 2012 11:42:13 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348738967 8001 80.91.229.3 (27 Sep 2012 09:42:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2012 09:42:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 27 11:42:53 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THAcO-0002Dh-P0 for ged-emacs-devel@m.gmane.org; Thu, 27 Sep 2012 11:42:52 +0200 Original-Received: from localhost ([::1]:37760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THAcJ-0002Dy-NX for ged-emacs-devel@m.gmane.org; Thu, 27 Sep 2012 05:42:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THAcC-0002Df-2l for emacs-devel@gnu.org; Thu, 27 Sep 2012 05:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THAc6-0000z8-Ay for emacs-devel@gnu.org; Thu, 27 Sep 2012 05:42:40 -0400 Original-Received: from mx1.bahnhof.se ([213.80.101.11]:53674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THAc6-0000nN-4E for emacs-devel@gnu.org; Thu, 27 Sep 2012 05:42:34 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx1-reinject (Postfix) with ESMTP id 04FAB29591D for ; Thu, 27 Sep 2012 11:42:29 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF2) Original-Received: from mf2.bahnhof.se ([127.0.0.1]) by localhost (mf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HMFRho4gR1oh for ; Thu, 27 Sep 2012 11:42:23 +0200 (CEST) Original-Received: from exodia.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf2.bahnhof.se (Postfix) with ESMTP id 40B284500D4 for ; Thu, 27 Sep 2012 11:42:22 +0200 (CEST) Original-Received: from chopper.vpn.verona.se (unknown [192.168.201.18]) by exodia.verona.se (Postfix) with ESMTP id 28E4F4E002F for ; Thu, 27 Sep 2012 11:42:13 +0200 (CEST) User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 213.80.101.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153626 Archived-At: This will be a rather vague problem description, sorry. I'm trying to start using Emacs in its daemonic form: emacs --daemon The idea is that since the Gnome 3 gnome-shell sometimes crashes several times a day for me, my emacs will survive and I can simply reconnect with emacsclient once gnome-shell is up again. Since I want my emacs to start as a service daemon when the machine boots, there is no dbus or gnome session to connect to yet. I want to attach to dbus and gnome once the gui session is started. for the gnome keyring I can do this: m-x setenv SSH_AUTH_SOCK RET /run/user/joakim/keyring-hzCXZo/ssh RET where the value is fetched from a shell started within the login session. I can thus unlock the keyring in gnome and use it in emacs. I expect to be able to do the same for dbus, but it doesnt quite work: m-x setevn DBUS_SESSION_BUS_ADDRESS RET unix:abstract=/tmp/dbus-XpKHIj1IpU,guid=5a7b419d5e50e78fe35e6ccf0005787a RET I still get: ELISP> (dbus-init-bus :session) *** Eval error *** D-Bus error: "No connection to bus", :session And here somewhere is my actuall issue: "No connection to bus" can be returned in several places in dbusbind.c, so I cant really debug which of the checks are triggered. (dbus-init-bus :system) seems to work and return 2. -- Joakim Verona