Bug 479540

Summary: Trash applet icon remains full after emptying
Product: [Plasma] plasmashell Reporter: marav <marav8>
Component: Trash widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.27.10   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description marav 2024-01-08 15:08:15 UTC
SUMMARY

The trash icon (widget) remains non-empty after emptying 

STEPS TO REPRODUCE
1.  Add trash widget icon
2.  Delete a file or a folder
3.  Empty the trash

OBSERVED RESULT
The trash is emptied, but the icon remains as if there were things in it
Also, I have this log :

** (process:3381): WARNING **: 15:52:24.579: *** Unsupported operation detected on trash directory
** (process:3381): WARNING **: 15:52:24.579:     A trash files/ directory should only have files linked or unlinked (via moves or deletes).  Some other operation has been detected on a file in the directory (eg: a file has been modified).  Likely, the data reported by the trash backend will now be inconsistent.
** (process:3381): WARNING **: 15:52:24.579:   dir: /home/marav/.local/share/Trash/files, file: test, type: 4
** (process:3381): WARNING **: 15:52:24.579: *** Unsupported operation detected on trash directory
** (process:3381): WARNING **: 15:52:24.579:   dir: /home/marav/.local/share/Trash/files, file: test, type: 4


EXPECTED RESULT
Have a "empty style" icon

SOFTWARE/OS VERSIONS

Slackware Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

INFOS:
panel height : 44
icons space : normal
Comment 1 marav 2024-01-08 15:11:52 UTC
(In reply to marav from comment #0)
> SUMMARY
> 
> The trash icon (widget) remains non-empty after emptying 
> 
> STEPS TO REPRODUCE
> 1.  Add trash widget icon
> 2.  Delete a file or a folder
> 3.  Empty the trash
> 
> OBSERVED RESULT
> The trash is emptied, but the icon remains as if there were things in it
> Also, I have this log :
> 
> ** (process:3381): WARNING **: 15:52:24.579: *** Unsupported operation
> detected on trash directory
> ** (process:3381): WARNING **: 15:52:24.579:     A trash files/ directory
> should only have files linked or unlinked (via moves or deletes).  Some
> other operation has been detected on a file in the directory (eg: a file has
> been modified).  Likely, the data reported by the trash backend will now be
> inconsistent.
> ** (process:3381): WARNING **: 15:52:24.579:   dir:
> /home/marav/.local/share/Trash/files, file: test, type: 4
> ** (process:3381): WARNING **: 15:52:24.579: *** Unsupported operation
> detected on trash directory
> ** (process:3381): WARNING **: 15:52:24.579:   dir:
> /home/marav/.local/share/Trash/files, file: test, type: 4
> 
> 
> EXPECTED RESULT
> Have a "empty style" icon
> 
> SOFTWARE/OS VERSIONS
> 
> Slackware Linux 
> KDE Plasma Version: 5.27.10
> KDE Frameworks Version: 5.113.0
> Qt Version: 5.15.11
> 
> INFOS:
> panel height : 44
> icons space : normal

Ok, so nevermind
I removed an artifact of probably an old file *.trashinfo
Now, everything is back to normal
Sorry for the noise and happy new year ! ;-)