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
I think this would work if you used "su -" instead of "su", though not sure of the reasons/details here.
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.