新装Fedora15后,在终端中输入# gedit /etc/profile 报出警告
(gedit:2184): Gtk-WARNING **: Attempting to read the recently used resources file at `/root/.local/share/recently-used.xbel', but the parser failed: 读取文件“/root/.local/share/recently-used.xbel”出错:是一个目录.
(gedit:2184): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 将文件“/root/.local/share/recently-used.xbel.IJO6XV”重命名为“/root/.local/share/recently-used.xbel”失败:g_rename() 失败:是一个目录
解决方法是创建如下目录和文件/root/.local/share/recently-used.xbel
创建目录命令 mkdir 目录名
创建文件命令 touch 文件名
本文详细介绍了在安装Fedora15后使用gedit打开/etc/profile文件时遇到的问题及解决方法。通过创建指定目录和文件来修复问题,避免了因系统配置错误导致的无法正常编辑或运行脚本的情况。

1370

被折叠的 条评论
为什么被折叠?



