From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Message when starting emacs as root
Date: Fri, 22 Apr 2011 08:54:10 +1000 [thread overview]
Message-ID: <87y633b4h9.fsf@rapttech.com.au> (raw)
In-Reply-To: 87r58w5dvp.fsf@Compaq.site
Cecil Westerhof <Cecil@decebal.nl> 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
next prev parent reply other threads:[~2011-04-21 22:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 6:15 Message when starting emacs as root Cecil Westerhof
2011-04-21 22:54 ` Tim X [this message]
2011-04-21 22:56 ` Tim X
2011-04-21 23:20 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y633b4h9.fsf@rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.