[Bug 29707] New: Mac: Wine "trashes" files by moving them to ~/.local/share/Trash/files
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Jan 25 11:20:31 CST 2012
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 at winehq.org
ReportedBy: fgouget at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list