1

When I am trying to edit some files I am getting this warning. How can I resolve this error.

(gedit:5596): IBUS-WARNING **: The owner of /home/user/.config/ibus/bus is not root!
Zanna
  • 72,312

2 Answers2

5

If you want to not see the error, try sudo -i gedit in the future.

You are attempting to run gedit via sudo without inheriting the root user's environment settings and are instead using them from the current user. The current user is not root and root is not running ibus, so you definitely should be seeing that error.

Stephen
  • 1,797
1

The problem with the one answer recommending "sudo gedit" is technically incorrect. You need to use "gksu ..." for graphical environments (GUI).

gksu gedit some_file_name

and

gksu nautilus /some_directory

are the accepted standards.

Starting with Ubuntu 17.04 you should use pkexec instead of gksu.