解决gedit warning问题
(2012-04-15 18:58:42)
标签:
杂谈 |
分类: linux学习 |
我在使用ubuntu11.10的时候,出现了gedit
warning问题
我在使用gedit打开和编辑文件的时候,会提示一堆的警告:
(gedit:9778): 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.LTBP3V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:9778): 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.47P63V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:9778): 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.MN6R3V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
根据上面的提示,实际上就是使用了非root账户登陆,而导致该目录不存在报错,解决思路就是手动建立这个文件目录即可
直接在终端命令行中输入
sudo mkdir -p /root/.local/share/
问题解决!
之后又发现在编辑的时候偶尔会出现以下错误警告:
(gedit:16399): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed
这个是拼写检查的问题,解决主要有两种思路,关闭拼写检查,或者安装词库解决。本人还是选择安装词库。
sudo apt-get install aspell aspell-en dictionaries-common
问题再度解决!
我在使用gedit打开和编辑文件的时候,会提示一堆的警告:
(gedit:9778): 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.LTBP3V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:9778): 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.47P63V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:9778): 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.MN6R3V': No such file or directory
(gedit:9778): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
根据上面的提示,实际上就是使用了非root账户登陆,而导致该目录不存在报错,解决思路就是手动建立这个文件目录即可
直接在终端命令行中输入
sudo mkdir -p /root/.local/share/
问题解决!
之后又发现在编辑的时候偶尔会出现以下错误警告:
(gedit:16399): CRITICAL **: gedit_spell_checker_language_to_key: assertion `lang != NULL' failed
这个是拼写检查的问题,解决主要有两种思路,关闭拼写检查,或者安装词库解决。本人还是选择安装词库。
sudo apt-get install aspell aspell-en dictionaries-common
问题再度解决!