4

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.

Muhnamana
  • 1,880

2 Answers2

4

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

Ringtail
  • 16,285
1

To get rid of the warning if it hasn't gone away yet you can create the directory(s) that are missing, as in

sudo mkdir -p /root/.local/share

Or the 1st time you delete anything as sudo it will also be created if you send to the root trash

doug
  • 17,212