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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityWhenever 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?
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.
No need for gksudo
. To make sudo
do what you want, add the -H
(or --set-home
) switch. Thus:
$ sudo -H gedit /etc/bluetooth/main.conf
As Cheesemill say, you should use gksudo
to launch graphical like gedit.
To install it, simply type this command in terminal:
sudo apt-get install gksu
I read some topics that have same problem to you (and so I am). Some men say just del rm -r /home/<user-name>/.config/ibus/bus
or rm -r /home/<user-name>/.config/ibus/
and then launch iBus again.
Some say remove (or purge) ibus and then re-install it.
Some say chown the bus folder.
Do this on a terminal:
michele@Zeus:~/.config/ibus$ sudo gedit /etc/bluetooth/main.conf
(gedit:3940): IBUS-WARNING **: The owner of /home/michele/.config/ibus/bus is not root!
michele@Zeus:~/.config/ibus$ ll
totale 12
drwx------ 3 michele michele 4096 dic 29 18:11 ./
drwx------ 26 michele michele 4096 gen 2 12:25 ../
**drwx------ 2 michele michele 4096 gen 5 13:19 bus/**
michele@Zeus:~/.config/ibus$ rm -R bus/
michele@Zeus:~/.config/ibus$ sudo gedit /etc/bluetooth/main.conf
and now!!!
michele@Zeus:~/.config/ibus$ ll
totale 12
drwx------ 3 michele michele 4096 gen 5 13:35 ./
drwx------ 26 michele michele 4096 gen 2 12:25 ../
**drwx------ 2 root root 4096 gen 5 13:35 bus/**