From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: Emacs insists on starting dbus? Date: Tue, 31 Jul 2012 20:16:44 +0200 (CEST) Message-ID: <20120731.201644.1788057786581516405.hanche@math.ntnu.no> References: <20120731.164910.1735362134333062173.hanche@math.ntnu.no> <871ujr2536.fsf@gmx.de> 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 1343758613 20857 80.91.229.3 (31 Jul 2012 18:16:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 18:16:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: michael.albinus@gmx.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 20:16:53 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SwH01-0005qA-1e for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 20:16:53 +0200 Original-Received: from localhost ([::1]:60164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwH00-0005UF-9v for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2012 14:16:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwGzx-0005U6-7u for emacs-devel@gnu.org; Tue, 31 Jul 2012 14:16:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwGzw-0002LL-38 for emacs-devel@gnu.org; Tue, 31 Jul 2012 14:16:49 -0400 Original-Received: from hylle01.itea.ntnu.no ([129.241.56.100]:43895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwGzv-0002LD-SL for emacs-devel@gnu.org; Tue, 31 Jul 2012 14:16:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hylle01.itea.ntnu.no (Postfix) with ESMTP id C7F0B39A07A for ; Tue, 31 Jul 2012 20:16:46 +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 500DF39A013 for ; Tue, 31 Jul 2012 20:16:46 +0200 (CEST) Original-Received: (qmail 12908 invoked from network); 31 Jul 2012 18:16:46 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.58) by anne.math.ntnu.no with ESMTPA; 31 Jul 2012 18:16:46 -0000 In-Reply-To: <871ujr2536.fsf@gmx.de> 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-Received-From: 129.241.56.100 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152025 Archived-At: [Michael Albinus (2012-07-31 17:49:49 UTC)] > Since you have disabled dbus by configure option, dbusbind.c shouldn't > be linked with the emacs binary. Okay. Not sure how to make sure it didn't ... I am not too familiar with gnu/linux, coming from the freebsd world myself. > You might try to find which processes on the remote host run under D-Bus > control, started by emacs. Something like this: > > # sudo grep -l DBUS_SESSION_BUS_ADDRESS /proc/*/environ > # ps -p ### for all returned pid's I find /usr/lib/libgconf2-4/gconfd-2 (plus a bunch of processes owned by other users on the server). > It isn't a feature. But it looks like a side-effect of a third party > library linked with emacs. I see the following options to handle: > > - If we know which service(s) autostart D-Bus, we might find a way to > suppress them. So gconf(d) looks like a prime suspect? > - The default way to suppress autostart is configuring D-Bus sources > with --disable-x11-autolaunch before compilation. But I guess you > don't compile D-Bus yourself, it isn't a real option, therefore. You're right about that one. > - You could try to start emacs remotely with an invalid address, like > > env DBUS_SESSION_BUS_ADDRESS="invalid address" emacs --daemon ... > > According to the spec, autolaunch is activated only when > $DBUS_SESSION_BUS_ADDRESS is unset. Maybe dbus-launch returns an error > then, which is ignored. Not very elegant, but maybe working. Didn't change anything. - Harald