! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Shows empty trash icon first time it's opened even if trash isn't empty.
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description secipolla 2012-06-11 17:54:18 CEST
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).
Comment 1 secipolla 2012-06-11 21:06:52 CEST
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.
Comment 2 Y-H 2012-06-19 18:44:32 CEST
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
Comment 3 Y-H 2012-08-07 09:02:29 CEST
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
Comment 4 pezcurrel 2012-09-06 15:31:31 CEST
Same problem here, xfce 4.10, arch linux up-to-date.
I'm using xfdesktop, so it doesn't ifluence.
Comment 5 pezcurrel 2012-09-06 15:47:28 CEST
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
--------------------------------
Comment 6 Y-H 2013-07-07 20:12:39 CEST
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.
Comment 7 Eric Koegel editbugs 2013-09-09 08:19:48 CEST
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!
Comment 8 evereve 2013-09-29 16:52:21 CEST
I've built xfdesktop in Debian Testing and the patch seems to work. 
Thanks!

Bug #9006

Reported by:
secipolla
Reported on: 2012-06-11
Last modified on: 2013-11-27

People

Assignee:
Eric Koegel
CC List:
9 users

Version

Version:
Unspecified

Attachments

Additional information