From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.bugs Subject: bug#12112: 24.1.50; Starting emacs without dbus Date: Wed, 01 Aug 2012 15:46:26 +0200 (CEST) Message-ID: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343828876 14048 80.91.229.3 (1 Aug 2012 13:47:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 13:47:56 +0000 (UTC) To: 12112@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 15:47:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SwZHD-0000ap-FJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 15:47:51 +0200 Original-Received: from localhost ([::1]:44086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZHC-0002yA-IP for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2012 09:47:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZH6-0002x5-Hz for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:47:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZH0-0007mj-FL for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:47:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZH0-0007mT-Ab for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:47:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SwZOA-0003Sg-JJ for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harald Hanche-Olsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Aug 2012 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12112 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134382924613237 (code B ref -1); Wed, 01 Aug 2012 13:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2012 13:54:06 +0000 Original-Received: from localhost ([127.0.0.1]:54551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwZNG-0003RS-9Y for submit@debbugs.gnu.org; Wed, 01 Aug 2012 09:54:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49679) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwZNE-0003RL-3G for submit@debbugs.gnu.org; Wed, 01 Aug 2012 09:54:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZFy-0007Az-TE for submit@debbugs.gnu.org; Wed, 01 Aug 2012 09:46:39 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:53287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZFy-0007Au-QO for submit@debbugs.gnu.org; Wed, 01 Aug 2012 09:46:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZFx-0002jg-PA for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:46:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwZFw-0007Ab-Fe for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:46:33 -0400 Original-Received: from hylle01.itea.ntnu.no ([129.241.56.100]:51486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwZFw-0007AP-4d for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 09:46:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hylle01.itea.ntnu.no (Postfix) with ESMTP id C32DB3E028 for ; Wed, 1 Aug 2012 15:46:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hylle01.itea.ntnu.no Original-Received: from anne.math.ntnu.no (anne.math.ntnu.no [129.241.15.150]) by hylle01.itea.ntnu.no (Postfix) with SMTP id 78F3C3E027 for ; Wed, 1 Aug 2012 15:46:27 +0200 (CEST) Original-Received: (qmail 24601 invoked from network); 1 Aug 2012 13:46:27 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.58) by anne.math.ntnu.no with ESMTPA; 1 Aug 2012 13:46:27 -0000 X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.50 on Emacs 24.1.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62716 Archived-At: 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