From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.emacs.help Subject: Re: dbus: "(setenv ...)" not the same as "export ...=..." Date: Sun, 30 Oct 2011 16:08:11 +0100 Message-ID: <87mxcizfdw.fsf@micropit.couberia.bzh> References: <87wrbnz7le.fsf@micropit.couberia.bzh> <87d3deq2tw.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319987331 7507 80.91.229.12 (30 Oct 2011 15:08:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2011 15:08:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 16:08:42 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 1RKX06-0007da-Dv for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 16:08:42 +0100 Original-Received: from localhost ([::1]:37988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKX00-0005t1-Kt for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2011 11:08:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKWzw-0005sY-D3 for help-gnu-emacs@gnu.org; Sun, 30 Oct 2011 11:08:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKWzv-0000e3-3G for help-gnu-emacs@gnu.org; Sun, 30 Oct 2011 11:08:32 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKWzu-0000aQ-Tr for help-gnu-emacs@gnu.org; Sun, 30 Oct 2011 11:08:31 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RKWzs-0007Zl-8N for help-gnu-emacs@gnu.org; Sun, 30 Oct 2011 16:08:28 +0100 Original-Received: from arennes-359-1-206-2.w2-2.abo.wanadoo.fr ([2.2.69.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Oct 2011 16:08:28 +0100 Original-Received: from pmlists by arennes-359-1-206-2.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Oct 2011 16:08:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-359-1-206-2.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:ilkc/uWStTfFqRwbeCrZvpRwyE4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82719 Archived-At: On Sun, Oct 30 2011, Michael Albinus wrote: >> Emacs is the only program, that requires the DBUS_SESSION_BUS_ADDRESS >> environment variable, > > Nope. Better: emacs is the only program, that I know... (my personal experience is quite limited ;) > I do not see the use case for starting the D-Bus session bus from inside > Emacs. In this case, you could only communicate with D-Bus-aware > applications which have been started from inside Emacs as well, other > applications won't see your session bus. 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=autolaunch" 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. -- Peter