On Tue, Jun 22, 2010 at 1:12 PM, Wei Jiang <[email protected]> wrote:
> The Trash specification is very good. It is intent for Unix, but it is good > for Windows as well, with minor modification. > Windows already has a Recycle Bin which does (in my opinion) an excellent work. IMHO adding another data-structure doing the same work probably will confuse the user. I have implemented it for a cross platform (Unix and Windows) file manager > Acelet Filer at http://www.acelet.com/desktop/filer.html. > I would suggest to you to use the Windows Trash on your application. > I would like to comment about the Trash specification from my experience: > > $XDG_DATA_HOME is difficult to implement. > It is almost out of the capacity of trash implementer. Maybe I can modify > .bashrc to add that environment variable, but the user may delete it later. > I have checked Ubuntu 9.40 with Nautilus, $XDG_DATA_HOME is undefined. > The specifications doesn't mandate that there should be a XDG_DATA_HOME variable. Actually if it is not defined you should use its default value ( $HOME/.local/share). See http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html Instead, I would suggest an alternative: > > Call the program, which implements the Trash specification, with option > -info homeTrashDirName to get the trash directory name. > The problem is that there's not only one program implementing the Trash Specification under the same environment. They must use the same convention to interoperate without problems. In fact they do. You can trash a file with trash-cli and restore it with Gnome or KDE. If you decide to expand the Trash specification to Windows, I would like to > contribute comments. > I think that they would be welcome. -- Andrea Francia
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
