Ubuntu – get IBUS-Warning on running the sudo gedit command

command linegeditibus

Whenever I try to run a sudo gedit command as instructed in Step 4 of this answer, my terminal puts out:

(gedit:7549): IBUS-WARNING **: The owner of /home/jared/.config/ibus/bus is not root!

How do I get out of this situation?

Best Answer

You should always use gksudo instead of sudo to launch graphical applications otherwise the environmental variables aren't set up correctly.

In your example ibus is looking at the files in your users home directory instead of roots home directory as it should be doing.