From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Message when starting emacs as root Date: Fri, 22 Apr 2011 08:54:10 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87y633b4h9.fsf@rapttech.com.au> References: <87r58w5dvp.fsf@Compaq.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1306267853 12784 80.91.229.12 (24 May 2011 20:10:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:10:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:10:48 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 1QOxwG-0007NA-3d for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:10:48 +0200 Original-Received: from localhost ([::1]:57224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOxwF-0005S7-Jm for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:10:47 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:NrWw71LN1VMyaBDqk42aL9xDZNY= Original-Lines: 40 Original-NNTP-Posting-Host: eca5c371.news.astraweb.com Original-X-Trace: DXC=o59FaLF95nFOObP71A_HVDL?0kYOcDh@JN7:H2`MmAUCJoZ66_70GPF]G; 2>V^?kWCCAkl5c@XgkNVBBF\ED4MFBP]IFXVHo?^F Original-Xref: usenet.stanford.edu gnu.emacs.help:186705 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:81066 Archived-At: Cecil Westerhof writes: > When I start Emacs as root –from the command line–, I get the > following message: > (emacs:3279): GLib-WARNING **: In call to g_spawn_sync(), exit > status of a child process was requested but SIGCHLD action was set > to SIG_IGN and ECHILD was received by waitpid(), so exit status > can't be returned. This is a bug in the program calling > g_spawn_sync(); either don't request the exit status, or don't set > the SIGCHLD action. > > GConf Error: Failed to contact configuration server; the most > common cause is a missing or misconfigured D-Bus session bus > daemon. See http://projects.gnome.org/gconf/ for information. > (Details - 1: Failed to get connection to session: Abnormal > program termination spawning command line `dbus-launch > --autolaunch=609bb989b7d80a921f5561274aef47bc --binary-syntax > --close-stderr': ) > > As a non root user I do not get it. It happens since I updated to > openSUSE 10.4, which also update Emacs. I now use: > GNU Emacs 23.2.1 (i586-suse-linux-gnu, GTK+ Version 2.22.1) of 2011-02-22 on build27 Are you trying to run emacs as root from within an X sessions which you have started as a non-privileged user? If so, this is an error because xauth cookies are not correctly setup. I sometimes see this error when I ssh to a remote system and try to run some X applications immediately after logging in using XLL forwarding over ssh. I find running the command a second time and it all works. What happens if you start emacs with the -nw switch. If that works, then it is definitely an X authentication problem. If it still gives the error, then it is likely a problem further down the chain (i.e. dbus, gconf). Tim -- tcross (at) rapttech dot com dot au