(gedit:1953): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 创建文件“/root/.local/share/recently-used.xbel.KAYL7V”失败:没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: 没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 创建文件“/root/.local/share/recently-used.xbel.C2MS7V”失败:没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: 没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 创建文件“/root/.local/share/recently-used.xbel.FYAU7V”失败:没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: 没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: 创建文件“/root/.local/share/recently-used.xbel.NEGZ7V”失败:没有那个文件或目录
(gedit:1953): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: 没有那个文件或目录
解决办法如下:
切换到root用户:
sudo -s
建立/root/.local/share/目录:
mkdir -p /root/.local/share/
在使用gedit时,不再报上诉错误,问题解决。