I am running Ubuntu 14.10 with XFCE. Since a few weeks, gedit
is not launching any more as root (with gksu gedit
).
Launching with my normal account works without problems. The problem is not gksu
, as it does the same as sudo
(I know, not recommended for GUI) or gksudo
. pkexec
gives a different error. However, other programs (e.g. eog
) run fine with gksu
!
When I run gksu gedit
, I get the gksu
password prompt, and after entering it, I see the circling mouse cursor for maybe half a minute, but no gedit
window opens. No terminal output either.
Running pkexec gedit
in a terminal gives:
bytecommander@AlkaliMetal:~$ pkexec gedit
gdk_mir_display_open
Failed to connect to Mir: Failed to connect to server socket: File or Path not found.
(gedit:3935): Gtk-WARNING **: cannot open display:
bytecommander@AlkaliMetal:~$
Running gedit
in a root terminal gives:
root@AlkaliMetal:/home/bytecommander# gedit
(gedit:24281): dconf-WARNING **: failed to commit changes to dconf: Failed to execute child process "dbus-launch" (No such file or directory)
** (gedit:24281): CRITICAL **: file log.c: line 975: unexpected error: Failed to execute child process "dbus-launch" (No such file or directory) (g-exec-error-quark, 8)
^C
root@AlkaliMetal:/home/bytecommander#
(The command doesn't terminate. I aborted it after a while with Ctrl+C)
I searched for the log.c
file from the error message. The only one I found was /usr/share/gettext/intl/log.c
. Strange is however, that this file only contains 126 lines, so the line mentioned above (line 975) is not existing! Shall I post the content? It looks like normal C-code.
I also already deleted /root/.config/gedit/
, but nothing changed.
Starting dconf-editor
from a root terminal and examining the keys in dconf:/org/gnome/gedit
did not show any suspicious (to me!) values. I can post some keys if you tell me how to dump them. I only know how to use the GUI tool.
What do I have to I do to restore my root-dconf settings for gedit (assuming this is the problem)? Or am I wrong and the problem has another cause?
Maybe you can even guess what messed it up so that I can avoid it in the future. Thanks!
~/.gtkrc-2.0
file. What do you have there? – Rmano Apr 06 '15 at 15:05--reinstall gedit
to see if it work it might. – JoKeR Apr 06 '15 at 17:32rsync --progress /home/yourname/./config/.dconf
and/path/to/user/profile/backup/here
for more options listrsync --help
– JoKeR Apr 06 '15 at 18:10apt-get install dbus-x11
tells me it IS installed and up to date. I bet this has to do with XFCE. Could it be that dbus is running on Unity only (and Gnome maybe)? – Byte Commander Apr 06 '15 at 19:19sudo apt-get install xubuntu-desktop --reinstall
? What will happen to my settings then? – Byte Commander Apr 06 '15 at 19:37--reinstall
I don't think they will be removed but when you'll do--reinstall
withpurge
before that might. But of course if it's got messed up in some way it's better off to purge it and reinstall. – JoKeR Apr 06 '15 at 19:42cannot open display
in my posted solution thread steeldriver's answer provide some similar issue I think, you can try fixes with that workaround. – JoKeR Apr 06 '15 at 19:50