Package Details: trash 1.5-1

Git Clone URL: (read-only, click to copy)
Package Base: trash
Description: A CLI trash can (recycle bin)
Upstream URL:
Keywords: recycle trash
Licenses: GPL
Submitter: tmorello
Maintainer: tmorello
Last Packager: tmorello
Votes: 5
Popularity: 0.52
First Submitted: 2016-12-08 18:19
Last Updated: 2016-12-15 20:46

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

VDP76 commented on 2016-12-16 08:57

OK, thanks for the information.
I see your "IF", maybe I need to check my file/folder permission.
Anyway now the script now works as intended, thanks so much for the quick help.

tmorello commented on 2016-12-15 21:06

no it was always the default behavior. The trash command the way I designed it is meant to be a (safer) alternative to the rm command. You can trash any files in your system just like you can rm any files. The positive thing about trashing is that files are not completely removed but stored in a hidden folder for later optional retrieval. The script now doesn't ask for sudo password IF you have the correct rights over the file/folder you are trying to trash.

tmorello commented on 2016-12-15 20:48

I updated the package to not ask for sudo password if not needed. Please let me know if there are issues with the new system.. Also the prompts should be easier to work with (only one letter is required now...)

VDP76 commented on 2016-12-15 20:48

Is the "sudo as default" behaviour new to the latest update or was the script somehow incorrectly installed on my system before?
Personally I would not want the trash command to be able to deal with my system files...

tmorello commented on 2016-12-15 13:01

Well, the script uses sudo by default to execute the commands to trash the files. Even though the trash can is actually in your home directory you can trash any file in the file system. I will work on an update that checks if you have rights on the file you are trying to trash and ask for the your sudo password only if you don't have rights, maybe for v.1.5

VDP76 commented on 2016-12-15 11:59

Thank you for the quick update.
The script now effectively trashes files, but it still requires root privileges to do so.
Should I just chown the executable?

tmorello commented on 2016-12-15 01:44

It should be fixed now... Please let me know if the problem persists.

VDP76 commented on 2016-12-14 21:26

Hi, since the last update when I try to trash a file I am asked for root password, in loop, and the file is not moved to the trash bin but opened.
I am running Openbox, any idea what could the issue be?