opensuse中桌面上垃圾桶(Trash)图标状态显示不正确的解决办法

发现自己的opensuse 10.3 KDE环境桌面上的垃圾桶图标显示不正确:虽然垃圾桶中已经没有文件,可是显示的图标却是有垃圾文件没有清除时的图标。 搜索的网文上的处理是这么操作的:

  • 按Alt+Ctrl+F1,打开控制台,并以root身份登录;
  • 执行init 3命令,关闭图形服务器;
  • 执行cd home/xxx/.local/share/Trash,删除其中两个文件夹files和info中的所有文件和文件夹;(注意:不要删除files和 info文件夹,否则会造成右键菜单“move to trash“失效,如果已经这么操作了,重新创建这个两个文件夹即可)
  • 执行init 5,并启动到图形界面,创建并删除一个文件或文件夹,垃圾桶图标即可恢复。(以上操作有些是我自己加上去的说明,这样更完整些,原文链接Trash Empty But Icon Shows Full(链接已失效),感谢一下提供解决方案的作者。)

其实完全不需要这么麻烦的操作,可以这么进行:

  1. 在图形界面进入home/xxx/.local/share/Trash文件夹,分别进入到files和info文件夹,全选里面的文件,按住shift 键,同时鼠标右键——move to trash,此时即可彻底删除里面的文件而不经过垃圾桶;(注意事项同上面的(3))

创建并删除一个文件或文件夹,垃圾桶图标即可恢复。

in English: When using opensuse KDE desktop environment, the trash icon on desktop doesn’t changes whether it’s empty or not empty

  1. step in folder home/xxx/.local/share/Trash ,and then go in the subfolders named files and info,delete all the files and folders in these two subfolder, just use right click and ‘move to trash‘, and when you delete them, you must hold the Shift key;
  2. create a file and then move it to trash, empty the trash;
  3. you got the right trash icon for an empty trash.

©

本文发表于水景一页。永久链接:<https://cnzhx.net/blog/opensuse-kde-trash-icon-refresh/>。转载请保留此信息及相应链接。

时间过去太久,评论已关闭。
如果您有话要说,请到讨论区留言并给出此文章链接。
谢谢您的理解 :-)