This is Linux platform + upstream wine issue.
https://specifications.freedesktop.org/trash-spec/latest/#trash-directories
~/.local/share/Trash) so that the user cannot accidentally (or maliciously) fill up a different filesystem by sending things to trash.With wine 10.0 on Fedora 41 / Xfce 4.18, apparently:
foo/bar will trash the file bar but not the subsequently empty folder foo.Wine explorer.exe pops up a confirmation dialog if the empty folder cannot not be trashed and will be deleted.
Wine behaviour seems compliant with the spec; the confusing point for users is why one works but one doesn't, even though both are correct.
You should search/report to WineHQ, not here.
Thanks for the info. I briefly searched for some info here: https://bugs.winehq.org/, which I assume is the correct place and found various issues related to trash, some that seem to have been open for years (none directly related). I'm not sure what the quality of bug tracking is there. I don't feel that I have the information required to take this further down the rabbit hole in terms of reporting to another 3rd party.
I think it would be unhelpful for me to basically paste this thread as the bug report and not be able to answer any questions. This is well beyond the scope of what I am doing for users as a convenience feature.
I would urge you or someone related to this project to make a report since you can better respond to any questions and have a detailed understanding of what is happening as it relates to Proton.
However, I am considering this issue closed on my end having reported this and received information that this is a problem with a 3rd party tool used by Proton.
shell32.dllx1 2025-01
Observed behavior
On windows deleting single files and folders via
shell32.dllshell file operations to send the file or folder to the recycling bin rather than outright delete, the files and folders appear in the recycling bin and can be restored later or emptied/deleted.When running in game mode (not desktop mode).
On proton which seems to emulate
shell32.dllin some way files will appear in the trash in desktop mode later after being deleted via shell file operations, however folder paths are not sent to the trash and simply disappear (presumably deleted). At the very least it seems inconsistent.Expected behavior
Files and folders sent to the recycling bin on proton should appear in the trash.
Useful information for reproducing this:
SteamdeckC#/Monoshell32.dllFile operation flags:
0x0010,0x0400,0x0004Detected in Proton Version
9.0-47.0-6