Package Details: libtrash 3.3-4

Git Clone URL: https://aur.archlinux.org/libtrash.git (read-only)
Package Base: libtrash
Description: A shared, preloaded library that implements a trash can under Linux
Upstream URL: http://pages.stern.nyu.edu/~marriaga/software/libtrash/
Licenses: GPL
Submitter: td123
Maintainer: juantascon
Last Packager: juantascon
Votes: 7
Popularity: 0.035232
First Submitted: 2011-06-17 02:43
Last Updated: 2016-02-12 02:35

Latest Comments

juantascon commented on 2016-02-12 02:33

the author replied seems like he deleted a .o from the tarball, and that is why the sums changed, update to reflect this and removed the bash shell script

dreieck commented on 2016-02-09 23:17

There's also some "weird" problem with libtrash and pipes, but it's an upstream bug, I have contacted the author. I wrote a summary on it there: http://unix.stackexchange.com/questions/260756/patch-bad-file-descriptor-in-combination-with-pipe-and-ld-preload-libtrash

dreieck commented on 2016-02-09 23:15

Also, your message in 'libtrash.install' is wrong: By arch linux default, /etc/profile.d/*.sh get sourced regardless of their executable bit if we have a login shell.

The section in /etc/profile, which is responsible for it, looks:

if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi

--> if it is readable and ends with '.sh', it get's sourced.

juantascon commented on 2016-02-09 23:08

I've contacted the author because I find it weird that the checksum changed because no new version has been released, regarding the script I'll remove it soon in favor of being set manually, more people seem to be moving away from bash and it sounds nuts to support very single shell out there.

dreieck commented on 2016-02-09 23:00

Also, please update libtrash.sh such that it honours already existing LD_PRELOAD. Now it discards everything, but correct behaviour would be to preserve what is already there.

So, do it like this:

export LD_PRELOAD="/usr/lib/libtrash.so:${LD_PRELOAD}"

(Don't forget the double quotes, at least around the variable, but it is no harm to have them around everything)

dreieck commented on 2016-02-09 22:52

sha256sum of upstream has changed. Please update.

juantascon commented on 2015-02-11 15:07

have you tried something like this: UNCOVER_DIRS=/dev mc

kozaki commented on 2015-01-31 15:06

Do you know about a guide on how to use it for specific programs only?
I followed https://wiki.archlinux.org/index.php/Midnight_Commander#Using_libtrash and ended up with `Trash/SYSTEM_ROOT/dev/shm/*` filling up the $HOME with GB
AFAIK there's no configuration step on Manuel Arriaga's http://pages.stern.nyu.edu/~marriaga/software/libtrash/
There's a link on the forum which is for Rox only ( https://bbs.archlinux.org/viewtopic.php?id=17738 )

Alad commented on 2014-07-22 09:21

@ryosel: it's probably best to use this for specific programs only, not globally.

ryosei commented on 2014-07-07 15:38

it mess with a lot of programs... not worth it

ryosei commented on 2014-07-07 15:18

it seems you should bump the version in libtrash.sh to /usr/lib/libtrash.so.3.3 too.

ryosei commented on 2014-07-07 15:12

ahh, this make me a little angry.
I have to read the PKGBUILD manpage to understand why the PKGBUILD didn't work.
The "install -d ..." in the build section should be in the package section.
here is an updated PKGBUILD:
pastebin.com/0Exi8Pek

ryosei commented on 2014-07-07 15:11

ahh, this make me a little angry.
I have to read the PKGBUILD manpage to understand why the PKGBUILD didn't work.
The "install -d ..." in the build section will not run now.
You should put it in the package section.
here is an updated PKGBUILD:

ryosei commented on 2014-07-07 15:10

ahh, this make me a little angry. I have to read the PKGBUILD manpage to understand why the PKGBUILD doesn't work. the "install -d ..." in the build section will not run now. you should put it in the package section.
here is an updated PKGBUILD:
http://pastebin.com/0Exi8Pek

Alad commented on 2014-06-13 10:10

New version: 3.3

Anonymous comment on 2012-01-16 13:13

Looks like python < 3 is needed (scripts/get_symbol_versions.py has print statements, not print() functions).