If using trash applet for emptying, I can’t do anything else meanwhile, the whole desktop is unresponsive. It does not look frozen per say, just I can not click or launch anything while trash is emptying.
I noticed this because my trash contained many gtk* themes and icons, so dozens thousands little files.
So I tried again by removing other themes and icons but this time only using Nautilus to deal with the trash, and this way emptying trash does not « freeze » any other actions on desktop.
Hence my guessing trash applet may be doing something weird.
UBudgie 18.04 here, maybe does not apply to newer versions.
I wouldn’t say awkward. I just don’t have much experience with the trash applet to say “yeah, no problem!” It’s one of the applets I never really have used much, so I’d have to really look at it and see how it works and what would be involved. Thread mistakes can be a fun and exciting way to crash the Budgie Panel.
I agree fully! Anything to-do with mass file based manipulation should be done out-of-process i.e. separate executable. So if the separate process dies - it doesn’t take the panel with it.
I often avoid any thread issue by calling an external process. Had quite some thread issues with weather applet on threading before it worked rock solid finally.
Note here trash-applet does not really crash panels, it freezes the whole desktop UI while deleting files ( if there are many files or just few heavy files ).
We might also think about revamping trash-applet :
⋅ its icon type could be same as other launchers ( instead of limited to a panel/indicator size )
⋅ as long as icon followed state of trash ( empty / busy )
⋅ if easier, left click could be just a call to any default-file-explorer on Trash
⋅ right click = empty trash
I know I could almost do that with a basic .desktop file but then I don’t know how to
⋅ set « dynamic » icon for showing state of trash
⋅ place that icon at a specific location inside panel ( ie. not only inside icon-tasks-list applet )
On 20.04 I’m still facing a little issue with Trash applet : I can’t delete basic folders ( be they empty or not ) only files are deleted ( even archives like zip or tar ).