GNU bug report logs -
#12112
24.1.50; Starting emacs without dbus
Previous Next
Reported by: Harald Hanche-Olsen <hanche <at> math.ntnu.no>
Date: Wed, 1 Aug 2012 13:55:02 UTC
Severity: wishlist
Found in version 24.1.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12112 in the body.
You can then email your comments to 12112 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12112
; Package
emacs
.
(Wed, 01 Aug 2012 13:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Harald Hanche-Olsen <hanche <at> math.ntnu.no>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 01 Aug 2012 13:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This is perhaps a documentation enhancement request,
or perhaps a feature request.
Background: emacs launches dbus if it is started under X11 (i.e., with
DISPLAY set). If the user logged into the machine via ssh, the dbus
process(es) will continue after emacs is terminated, thus holding open
a channel (or two) through the ssh tunnel to the X11 server. So ssh
hangs when the user tries to log out.
Therefore, there is a need for users to be able to either start emacs
without launching dbus in the process, or else making sure that dbus
is also terminated when emacs is terminated (if dbus was started by
emacs in the first place).
This can be achieved in the current code by compiling emacs with these
configure flags: --without-dbus --without-gsettings --without-gconf
However, this is very difficult to discover without extensive trial
and error. If this could be documented some place, it would be good.
Or perhaps the configure script should have an option that is
equivalent to this combination?
It would be even more desirable if the goal of running without dbus
could be achieved without a specially compiled binary. I know of just
one way to achieve that:
DISPLAY= emacs --daemon
emacsclient -c ...
This works because emacs does not launch dbus if it does not have
DISPLAY set in its environment. Perhaps that might be documented, too.
Yet another possibility: A special startup flag to stop emacs from
launching dbus, perhaps by unsetting DISPLAY in its own environment
during startup, then resetting it after all the code that might
conceivably launch dbus has run. (This may not be practical.)
I am seeing this problem in recent bzr revisions (as of yesterday and
today) on trunk.
All this has been discussed on the emacs-deval mailing list: See the
thread titled "Emacs insists on starting dbus?" starting on July 31,
2012.
In that thread it has been noted that the dbus maintainers have an
open issue surrounding this phenomenon:
https://bugs.freedesktop.org/show_bug.cgi?id=32509
However, a long time has passed without any acitivity, so it may not
be resolved on the dbus side for a while.
- Harald
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12112
; Package
emacs
.
(Tue, 07 Aug 2012 14:27:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 12112 <at> debbugs.gnu.org (full text, mbox):
Harald Hanche-Olsen <hanche <at> math.ntnu.no> writes:
> This can be achieved in the current code by compiling emacs with these
> configure flags: --without-dbus --without-gsettings --without-gconf
> However, this is very difficult to discover without extensive trial
> and error. If this could be documented some place, it would be good.
> Or perhaps the configure script should have an option that is
> equivalent to this combination?
I have documented this in INSTALL. Since it is not widely used for
compilation, I don't believe it needs another configure option.
> It would be even more desirable if the goal of running without dbus
> could be achieved without a specially compiled binary. I know of just
> one way to achieve that:
>
> DISPLAY= emacs --daemon
> emacsclient -c ...
>
> This works because emacs does not launch dbus if it does not have
> DISPLAY set in its environment. Perhaps that might be documented, too.
This could be documented in the Emacs manual, chapter Emacs Server. Or ...
> Yet another possibility: A special startup flag to stop emacs from
> launching dbus, perhaps by unsetting DISPLAY in its own environment
> during startup, then resetting it after all the code that might
> conceivably launch dbus has run. (This may not be practical.)
... we add a new command line option for Emacs "--no-dbus", which
prevents initialization in init_gsettings(), init_gconf() (both in
xsettings.c) as well as any action in dbusbind.c.
What do people think? Stefan, Chong?
> - Harald
Best regards, Michael.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Fri, 24 Aug 2012 13:10:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Harald Hanche-Olsen <hanche <at> math.ntnu.no>
:
bug acknowledged by developer.
(Fri, 24 Aug 2012 13:10:04 GMT)
Full text and
rfc822 format available.
Message #13 received at 12112-done <at> debbugs.gnu.org (full text, mbox):
Harald Hanche-Olsen <hanche <at> math.ntnu.no> writes:
> Yet another possibility: A special startup flag to stop emacs from
> launching dbus, perhaps by unsetting DISPLAY in its own environment
> during startup, then resetting it after all the code that might
> conceivably launch dbus has run. (This may not be practical.)
Finally, it is sufficient to set DBUS_SESSION_BUS_ADDRESS to a syntactic
correct, but invalid address. Call Emacs like
# env DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/foo emacs
I have documented this in the Emacs manual, node Emacs Invocation >
Environment > General Variables. I'm closing this bug.
> - Harald
Best regards, Michael.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Sep 2012 11:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.