Bug 20198 - xdg-utils should contain a trash bin tool
Summary: xdg-utils should contain a trash bin tool
Status: NEW
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Portland Bugs
QA Contact:
Depends on:
Reported: 2009-02-18 12:04 UTC by Tassilo Horn
Modified: 2010-07-06 08:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Horn 2009-02-18 12:04:57 UTC
[Sorry for filing this in the wrong product, but there seems to be no xdg-utils component.]

Most of the time I'm doing my file management in the shell, where `rm' means dead and gone forever.  I'd love to see a command line tool facilitating the freedesktop.org trash bin.  I would imagine it to work like this:

# Move baz.txt to the trash bin
$ xdg-trash /foo/bar/baz.txt

# Move the whole bar directory to the trash bin
$ xdg-trash /baz/bar/

# List the trash bin's contents (lists the original locations)
$ xdg-trash --list
[1] /foo/bar/baz.txt
[2] /baz/bar/

# Restore the bar directory
$ xdg-trash --restore 2

# Empty the trash bin
$ xdg-trash --empty
Comment 1 Vincent Untz 2010-02-16 16:39:52 UTC
The product for xdg-utils is Portland, moving there.
Comment 2 Pablo Castellano (pablog) 2010-07-05 07:25:50 UTC
That's interesting, I will try to work on it in the next days.
Comment 3 Pablo Castellano (pablog) 2010-07-06 08:04:11 UTC
At the moment it exists trash-cli for this purpose. You can find it here: http://www.andreafrancia.it/trash/
Comment 4 Pablo Castellano (pablog) 2010-07-06 08:06:34 UTC
fd.o spec: http://www.freedesktop.org/wiki/Specifications/trash-spec

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.