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!
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!
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.
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.