all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: emacs-devel@gnu.org
Subject: Issue connecting Emacs --daemon to D-BUS
Date: Thu, 27 Sep 2012 11:42:13 +0200	[thread overview]
Message-ID: <m3haqjer9m.fsf@chopper.vpn.verona.se> (raw)

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



             reply	other threads:[~2012-09-27  9:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27  9:42 joakim [this message]
2012-10-02  5:38 ` Issue connecting Emacs --daemon to D-BUS andres.ramirez
2012-10-03  1:31   ` Dan Nicolaescu
2012-10-08 12:28   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3haqjer9m.fsf@chopper.vpn.verona.se \
    --to=joakim@verona.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.