我是 Linux 新手,运行 Linux Mint 17,在使用终端更新脚本和更改默认列表时遇到了问题。
使用命令 gksudo gedit 编辑脚本时,保存更改后关闭文档时终端抛出:
(gedit:3633): 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.ZXW0LX': No such file or directory
(gedit:3633): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:3633): 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.EN8DMX': No such file or directory
(gedit:3633): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
这看起来好像使用 gksudo 将更改写入文件但无法保存这些更改,因为目标不存在。查看他们似乎已进行的更改时,但在后续会话中(重新启动后),更改似乎已恢复。使用 sudo gedit 时不会发生这种情况。