linux gedit: I always get "GConf Error: failed to contact configuration server ..." linux gedit: I always get "GConf Error: failed to contact configuration server ..." linux linux

linux gedit: I always get "GConf Error: failed to contact configuration server ..."


I've been using GUI apps as a logged-in user and as a secondary user for 15+ years on various UNIX machines. There's plenty of good reasons to do so (remote shell, testing of configuration files, running multiple sessions of programs that only allow one instance per user, etc).

There's a bug at launchpad that explains how to eliminate this message by setting the following environment variable.

export DBUS_SESSION_BUS_ADDRESS=""


The technical answer is that gedit is a Gtk+/Gnome program, and expects to find a current gconf session for its configuration. But running it as a separate user who isn't logged in on the desktop, you don't find it. So it spits out a warning, telling you. The failure should be benign though, and the editor will still run.

The real answer is: don't do that. You don't want to be running GUI apps as anything but the logged-in user, in general. And you never want to be running any GUI app as root, ever.


For some (RHEL, CentOS) you may need to install the dbus-x11 package ...

sudo yum install dbus-x11

Additional details here.