From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: dbus: "(setenv ...)" not the same as "export ...=..." Date: Mon, 07 Nov 2011 11:07:30 +0100 Message-ID: <87lirsfdp9.fsf@gmx.de> References: <87wrbnz7le.fsf@micropit.couberia.bzh> <87d3deq2tw.fsf@gmx.de> <87mxcizfdw.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320660471 11387 80.91.229.12 (7 Nov 2011 10:07:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2011 10:07:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 07 11:07:47 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RNM7H-00048h-3P for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Nov 2011 11:07:47 +0100 Original-Received: from localhost ([::1]:44464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNM7G-0002XS-4b for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Nov 2011 05:07:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNM7C-0002XL-He for help-gnu-emacs@gnu.org; Mon, 07 Nov 2011 05:07:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNM7B-0000AY-OB for help-gnu-emacs@gnu.org; Mon, 07 Nov 2011 05:07:42 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:37316) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RNM7B-0000AQ-B0 for help-gnu-emacs@gnu.org; Mon, 07 Nov 2011 05:07:41 -0500 Original-Received: (qmail invoked by alias); 07 Nov 2011 10:07:38 -0000 Original-Received: from p57BB98A4.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.164] by mail.gmx.net (mp018) with SMTP; 07 Nov 2011 11:07:38 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/blecCUfbbHRqAW7wXE0zD61By6Nt1OnHn06tMmI oD62+SKCMDeYZD In-Reply-To: <87mxcizfdw.fsf@micropit.couberia.bzh> ("Peter \=\?utf-8\?Q\?M\?\= \=\?utf-8\?Q\?\=C3\=BCnster\=22's\?\= message of "Sun, 30 Oct 2011 16:08:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82782 Archived-At: pmlists@free.fr (Peter M=C3=BCnster) writes: > I don't want to start it from emacs. It has already been started from > somewhere at the start of the X-session. The "address=3Dautolaunch" > permits emacs to find the dbus-daemon. > > From the dbus-launch man page: > "If DBUS_SESSION_BUS_ADDRESS is not set for a process that tries to > use D-Bus, by default the process will attempt to invoke dbus-launch > with the --autolaunch option to start up a new session bus or find > the existing bus address on the X display or in a file in > ~/.dbus/session-bus/" > > It seems, that emacs does this only, if DBUS_SESSION_BUS_ADDRESS is set > to "autolaunch:", but not if it is unset. And (setenv ...) does not > work, it must be set from outside emacs. Emacs' dbusbind.c does not parse $DBUS_SESSION_BUS_ADDRESS, it uses vanilla libdbus from the reference implementation. Therefore, its behaviour seems to be correct. For the behaviour of `setenv' see the other answer. It modifies `process-environment', which is not involved 'cause there is no new process started when opening a D-Bus connection. Best regards, Michael.