This is a somewhat minor bug, IMO. My trash has items on it but when thunar is first opened, the trash icon is 'empty'. I have either to open the trash folder or close thunar and open it again for the icon to show 'full' (just opening a new window still shows empty icon).
Actually, it only shows the proper icon after closing and re-opening thunar. When it has the 'empty' icon, the 'Empty trash' right-click shortcut is grayed out. I don't use xfdesktop; I don't know if this influences or not.
I'm seeing this problem with the desktop icon. My system: -- Fedora 16 Xfce spin, fresh install -- Thunar-1.3.0-4.fc16.x86_64 -- Xfce 4.8 -- Thunar is the default file manager Problem description and further information: -- Desktop trash icon is empty at login, even though there are items in trash -- Desktop trash icon changes to full after items are added to trash. But, trash icon reverts to empty after next login -- Trash icon in Thunar side panel is not empty at login -- Problem appears to persist regardless of icon theme
This problem is persisting after updates. -- Fedora 17 -- Thunar-1.3.0-6.fc17.x86_64 -- xfdesktop-4.8.3-3.fc17.x86_64 -- Xfce 4.8
Same problem here, xfce 4.10, arch linux up-to-date. I'm using xfdesktop, so it doesn't ifluence.
As a workaround, I have a bash script ("trash_workaround.sh") being called on xfce's start by a "trash_workaround.desktop" in "/etc/xdg/autostart". --- trash_workaround.sh --- #!/bin/sh sleep 1 xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-trash -s false 2>&1 xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-trash -s true 2>&1 --------------------------- (perhaps it could work without "sleep 1" on your box, or perhaps you'll have to increase the delay...) --- trash_workaround.desktop --- [Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Name=Workaround for xfce's trash icon Exec=/path/to/trash_workaround.sh OnlyShowIn=XFCE; StartupNotify=false Terminal=false Hidden=false --------------------------------
This bug is persisting with me: Fedora 19 xfdesktop-4.10.2-1.fc19.x86_64 Thunar-1.6.3-1.fc19.x86_64 Xfce is the only desktop environment I have installed. Adding 'xfdesktop' to Startup (Menu > Settings > Session and Startup) works as a temporary fix.
Created attachment 5148 Fix for trash always showing empty on system startup This patch should make it so that the trash can on the desktop displays the correct number of items and the correct icon. Please test it out, thanks!
I've built xfdesktop in Debian Testing and the patch seems to work. Thanks!
Pushed to master: http://git.xfce.org/xfce/xfdesktop/commit/?id=e4e8078335775762b3c5b9ff14e785db486101c6