Possible Duplicate:
Gtk warning when opening Gedit in terminal
I have Ubuntu 11.10 installed on two different machines, both using x64 installs. Only one machine returns these Gtk warnings after using sudo gedit
. I get these warnings when opening or saving a file.
Here is an example:
(gedit:2456): Gtk-WARNING **; Attempting to store changes into '/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.KBGV9V': No such file or directory
I also get another set of warnings related to "Attempting to set permissions of" the above mention directory.
Is this something I should be concerned with? Any way to get rid of those warnings? Like I said, my other machine doesn't return these warnings in the terminal.
As far as the warning go.....they are just that.
If you are using gedit as a superuser then I would recommend using gksudo instead
CLI=sudo
GUI=gksudo
The reason for root permissions. See the tutorial
To get rid of the warning if it hasn't gone away yet you can create the directory(s) that are missing, as in
Or the 1st time you delete anything as sudo it will also be created if you send to the root trash