From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 01 09:54:06 2012 Received: (at submit) by debbugs.gnu.org; 1 Aug 2012 13:54:06 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 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 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 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 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 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 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) Received: (qmail 24601 invoked from network); 1 Aug 2012 13:46:27 -0000 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 Date: Wed, 01 Aug 2012 15:46:26 +0200 (CEST) Message-Id: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Starting emacs without dbus From: Harald Hanche-Olsen X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.50 on Emacs 24.1.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 07 10:26:05 2012 Received: (at 12112) by debbugs.gnu.org; 7 Aug 2012 14:26:05 +0000 Received: from localhost ([127.0.0.1]:39826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SykjU-000531-Bx for submit@debbugs.gnu.org; Tue, 07 Aug 2012 10:26:04 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:34038) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SykjR-00052a-RI for 12112@debbugs.gnu.org; Tue, 07 Aug 2012 10:26:03 -0400 Received: (qmail invoked by alias); 07 Aug 2012 14:18:01 -0000 Received: from p57BB9590.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.144] by mail.gmx.net (mp031) with SMTP; 07 Aug 2012 16:18:01 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19LvqYEDK9LhqwB0zNJCYW+8loAQ+tgvXZExmAGC8 RITdRLX99DQ30t From: Michael Albinus To: Harald Hanche-Olsen Subject: Re: bug#12112: 24.1.50; Starting emacs without dbus References: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> Date: Tue, 07 Aug 2012 16:17:56 +0200 In-Reply-To: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Wed, 01 Aug 2012 15:46:26 +0200 (CEST)") Message-ID: <87628u4wh7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12112 Cc: 12112@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Harald Hanche-Olsen 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 24 09:09:09 2012 Received: (at 12112-done) by debbugs.gnu.org; 24 Aug 2012 13:09:10 +0000 Received: from localhost ([127.0.0.1]:46542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T4tdM-0000TH-QU for submit@debbugs.gnu.org; Fri, 24 Aug 2012 09:09:09 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:59861) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T4tdK-0000T9-3U for 12112-done@debbugs.gnu.org; Fri, 24 Aug 2012 09:09:07 -0400 Received: (qmail invoked by alias); 24 Aug 2012 13:08:28 -0000 Received: from p57BB99C8.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.200] by mail.gmx.net (mp019) with SMTP; 24 Aug 2012 15:08:28 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+BIeMWGzSBDZFFEkinylvFCgldT0gA+VyReCOuon xdiBGqXewb5F2k From: Michael Albinus To: Harald Hanche-Olsen Subject: Re: bug#12112: 24.1.50; Starting emacs without dbus References: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> Date: Fri, 24 Aug 2012 15:08:18 +0200 In-Reply-To: <20120801.154626.1593194177160162484.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Wed, 01 Aug 2012 15:46:26 +0200 (CEST)") Message-ID: <87sjbcfnel.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12112-done Cc: 12112-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Harald Hanche-Olsen 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. From unknown Mon Jun 23 02:22:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 22 Sep 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator