http://bugs.winehq.org/show_bug.cgi?id=29707
Bug #: 29707 Summary: Mac: Wine "trashes" files by moving them to ~/.local/share/Trash/files Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: shell32 AssignedTo: wine-bugs@winehq.org ReportedBy: fgouget@codeweavers.com Classification: Unclassified
Reposting one of Ken's bug descriptions verbatim here because I really don't see anything to change.
--- In certain circumstances, Wine attempts to move a file to the Recycle Bin. For example, this happens if you select a file in a file dialog and hit the Delete key.
Wine's current implementation adheres to the freedesktop.org specification regarding the Trash, and ends up moving the file to ~/.local/share/Trash/files. On the Mac, this is as bad as permanently deleting the file for most users, except that the file's space isn't even recovered. There's approximately zero chance they'd ever be able to find it again.
This needs to be reimplemented to move the files to the Mac Trash. The right function is probably FSPathMoveObjectToTrashSync().
The Finder maintains sufficient information to put the file back, but it's in the opaque .DS_Store file. So, we may want to add a "org.winehq.trashinfo" extended attribute to the file to preserve the original name and location. Ideally, adding the attribute wouldn't change the file's mtime. ---
As far as I can tell there is no alternative Mac-specific path up to Wine 1.3.37.