Recycle bin?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mariourk
Newbie
Newbie
Posts: 2
Joined: Wed Feb 27, 2008 4:07 am

Recycle bin?

Post by mariourk »

When I use a program with wine, and delete a file, using that program (say, a photo manager/editor) the file is deleted forever. Is there maybe some recycle bin, where wine stores such deleted files?
mikolajz
Level 2
Level 2
Posts: 20
Joined: Wed Feb 27, 2008 7:18 am

Post by mikolajz »

If this file is on the same filesystem as your home directory and the app uses SHFileOperation to delete it (most apps do it when dealing with user files) then the file will be sent to the Trash. If there is a confirmation dialog then you can know what will happen as like on Windows you wil be asked either if you want to sent the file to Trash or to delete it.

The Trash used is the standard Freedesktop trash directory in ~/.local/share/Trash. The problem is that (at least the last time I checked) it is not supported by Gnome. To undelete a file you need to use e.g. KDE or simply manually copy the file from this directory.
James McKenzie

Recycle bin?

Post by James McKenzie »

mikolajz wrote:
If this file is on the same filesystem as your home directory and the app uses SHFileOperation to delete it (most apps do it when dealing with user files) then the file will be sent to the Trash. If there is a confirmation dialog then you can know what will happen as like on Windows you wil be asked either if you want to sent the file to Trash or to delete it.

The Trash used is the standard Freedesktop trash directory in ~/.local/share/Trash. The problem is that (at least the last time I checked) it is not supported by Gnome. To undelete a file you need to use e.g. KDE or simply manually copy the file from this directory.

Since this uses Operating System functionality, this should be work on a
Mac. I will test this soon and if it does not work, I will file a bug
if there is not one present.

James
Dan Kegel

Recycle bin?

Post by Dan Kegel »

On Wed, Feb 27, 2008 at 6:37 AM, James McKenzie
<[email protected]> wrote:
Since this uses Operating System functionality, this should be work on a
Mac. I will test this soon and if it does not work, I will file a bug
if there is not one present.
Yeah, let's file a bug against Mac OS X for not using the
freedesktop.org trash spec.

Oh, wait :-) Yeah, on a mac we should use the Mac trash mechanism
if we don't already...
James McKenzie

Recycle bin?

Post by James McKenzie »

Dan Kegel wrote:
On Wed, Feb 27, 2008 at 6:37 AM, James McKenzie
<[email protected]> wrote:
Since this uses Operating System functionality, this should be work on a
Mac. I will test this soon and if it does not work, I will file a bug
if there is not one present.
Yeah, let's file a bug against Mac OS X for not using the
freedesktop.org trash spec.

Oh, wait :-) Yeah, on a mac we should use the Mac trash mechanism
if we don't already...

Ok. I'll try it right now. Winefile deleted the test file and it did
not show in the trash. Is this expected?

James
Dan Kegel

Recycle bin?

Post by Dan Kegel »

On 2/27/08, James McKenzie <[email protected]> wrote:
Ok. I'll try it right now. Winefile deleted the test file and it did
not show in the trash. Is this expected?
I dunno. Probably. Go ahead a file that bug.
James McKenzie

Recycle bin?

Post by James McKenzie »

Dan Kegel wrote:
On 2/27/08, James McKenzie <[email protected]> wrote:
Ok. I'll try it right now. Winefile deleted the test file and it did
not show in the trash. Is this expected?
I dunno. Probably. Go ahead a file that bug.

Ok, Dan I will.

Bug 11760 was created. Bug 5055 existed for Linux based PCs and the
work for it may or may not work on the Mac.

James McKenzie
mariourk
Newbie
Newbie
Posts: 2
Joined: Wed Feb 27, 2008 4:07 am

Post by mariourk »

The Trash used is the standard Freedesktop trash directory in ~/.local/share/Trash.
This seems to work fine on my Ubuntu system. Too bad it is not supported by Gnome. But at least now I know where the files went and have a way to recover them, if needed. Thanks a lot! :D
James McKenzie

Recycle bin?

Post by James McKenzie »

mariourk wrote:
The Trash used is the standard Freedesktop trash directory in ~/.local/share/Trash.

This seems to work fine on my Ubuntu system. Too bad it is not supported by Gnome. But at least now I know where the files went and have a way to recover them, if needed. Thanks a lot! :D


I'll have to add this to my bug report. I just looked and found a bunch
of files in this directory. However, the last file date was October 28
of last year, and I was not even using Wine at the time. The file I
deleted was not there.

James McKenzie
James McKenzie

Recycle bin?

Post by James McKenzie »

mariourk wrote:
The Trash used is the standard Freedesktop trash directory in ~/.local/share/Trash.

This seems to work fine on my Ubuntu system. Too bad it is not supported by Gnome. But at least now I know where the files went and have a way to recover them, if needed. Thanks a lot! :D


I'll have to add this to my bug report. I just looked and found a bunch
of files in this directory. However, the last file date was October 28
of last year, and I was not even using Wine at the time.
The file I deleted was not there that I was using for the Trash test on
my MacIntosh.

James McKenzie
Locked