Ubuntu解决gedit warning问题的方法

来源:互联网 发布:golang exec command 编辑:程序博客网 时间:2024/06/04 18:46

1.问题:Ubuntu11.04用sudo gedit打开文件编辑保存后会出现如下提示:

  (gedit:26742): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 创建文件“/root/.local/share/recently-used.xbel.D2BO6V”失败:没有那个文件或目录
(gedit:26742): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: 没有那个文件或目录


2.在终端执行命令:sudo mkdir -p /root/.local/share 即可解决。具体原因未知,似乎是和root权限有关。


原创粉丝点击