Ответ SirCharlo работал для меня. Та же проблема на ubuntu 12.04 (точный панголин). Да, я также использую su (root). Позор, стыд. Такая же проблема запускает emacs.
Проблема заключается в том, что DBUS_SESSION_BUS_ADDRESS сохраняет свое значение, когда вы используете su вместо того, чтобы поднять значение в /root/.dbus/session-bus/
от пользователя dbus-launch:
...
The second common reason for autolaunch is an su to another user, and
display of X applications running as the second user on the display
belonging to the first user. Perhaps the ideal fix in this case would
be to allow the second user to connect to the session bus of the first
user, just as they can connect to the first user's display. However, a
mechanism for that has not been coded.
...
Использовать sudo, suedit, gksu.
Или, если вы ДОЛЖНЫ использовать su, попробуйте добавить его к вашему /root/.bashrc: [ ! d4]
sessionfile=`find "${HOME}/.dbus/session-bus/" -maxdepth 1 -type f`
if [ -f "$sessionfile" ] ; then
if grep -q "^DBUS_SESSION_BUS_ADDRESS=" "${sessionfile}" ; then
export `grep "^DBUS_SESSION_BUS_ADDRESS=" "${sessionfile}"`
else
echo "DBUS_SESSION_BUS_ADDRESS not found in ${sessionfile}"
fi
else
echo "no session address file found in ${HOME}/.dbus/session-bus"
fi