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.
-- Fedora 16 Xfce spin, fresh install
-- 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
-- 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 ---
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 ---
Name=Workaround for xfce's trash icon
This bug is persisting with me:
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.
Pushed to master: http://git.xfce.org/xfce/xfdesktop/commit/?id=e4e8078335775762b3c5b9ff14e785db486101c6