Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 348531

Summary: app-editors/gedit-2.30.4 crash when attempt to use it from root
Product: Gentoo Linux Reporter: jeff <aliencowboy>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jeff 2010-12-12 16:21:49 UTC
When search to use gedit 2.30.4 from root i receive this message:

(gedit:14253): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted


Reproducible: Always

Steps to Reproduce:
1. Login as root with su
2. Try to open some file
Comment 1 Mart Raudsepp gentoo-dev 2010-12-13 03:58:16 UTC
I think this would work if you used "su -" instead of "su", though not sure of the reasons/details here.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-14 13:05:09 UTC
this is a problem of environment re-initialization. You either have too much variables unset or not enough so gedit does not have a coherent environment to work with and does stupid things which makes it not work.

From the log lines, you should verify that DISPLAY, XAUTHORITY and DBUS_SESSION_BUS_ADDRESS variables are set before starting gedit.

In any case, this is a configuration issue, not an application problem.