2
** (gedit:8315): CRITICAL **: file log.c: line 980: unexpected error: Error calling StartServiceByName for org.gnome.zeitgeist.Engine: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/bin/zeitgeist-daemon exited with status 1 (g-dbus-error-quark, 25)

It works alright if I do gksu gedit.

2
  • 1
    Don't open gui application through sudo. Jun 1, 2014 at 5:10
  • Use nano or vim for such tasks.
    – LiveWireBT
    Jun 1, 2014 at 12:33

2 Answers 2

5

First you should read this Why should users never use normal sudo to start graphical applications?

But you should be able to start gedit using sudo -H gedit

While searching I found similar problem reported here.

A bug is reported there "Ubuntu 13.10 "gedit" fails every time unless user removes zeitgeist directory."

So running this command

rm ~/.local/share/zeitgeist -R

seems to solve the issue.

1
  • I confirmed this worked for me on Ubuntu 14.04. I was not using "sudo", just trying to lauch gedit. Aug 15, 2014 at 16:50
2

gksu is a frontend to su and gksudo is a frontend to sudo. Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

To open GUI application from terminal use gksu or gksudo as following:

gksudo gedit

If gksu not installed then first install by sudo apt-get install gksu.


However It is recommended to run command-line as root and Don't run GUI apps as root.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .