Package Details: trash 1.5.2-1

Git Clone URL: https://aur.archlinux.org/trash.git (read-only, click to copy)
Package Base: trash
Description: CLI trash can (recycle bin)
Upstream URL: https://github.com/tonymorello/trash
Licenses: custom:UNLICENSE
Submitter: tmorello
Maintainer: eclairevoyant
Last Packager: eclairevoyant
Votes: 8
Popularity: 0.000183
First Submitted: 2016-12-08 18:19 (UTC)
Last Updated: 2023-03-24 17:57 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

VDP76 commented on 2016-12-16 08:57 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC) (edited on 2016-12-15 13:01 (UTC) by tmorello)

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 (UTC)

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 (UTC)

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

VDP76 commented on 2016-12-14 21:26 (UTC)

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? Thanks