ROX filer auto trash

Booting, installing, newbie
Post Reply
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

ROX filer auto trash

#1 Post by darkcity »

Hi,

Is there a way to get ROX-filer to only have trash option (no delete) - apart from on the trash folder of course.

:twisted:

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

Hi darkcity.

Interesting issue you have raised.
I'm not sure is this exactly what you're looking for,
but I did some Google-work and I found this:
http://pages.stern.nyu.edu/~marriaga/software/libtrash/

Without any expectations I compiled this lib (with lots of warnings), edited /etc/profile...
...and big surprise!
Now, when deleting (non-empty) file/folder either from ROX-Filer and Terminal window (rm), all objects are moved to /root/Trash.

I've no idea how reliable this lib's behaviour in Puppy really is in the long run;
I've been playing with this just a few moments...and I don't even know how to empty that Trash, I got "permission denied" (?!) :lol:

Maybe someone more competent than me would like to test/comment this lib?
Because it's looking quite promising, isn't it? :wink:

PS. I'm running Lupuplus-528.001 now.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#3 Post by darkcity »

Nice find, will give this a try :twisted: Greetings!

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#4 Post by darkcity »

can you detail how you made it work? including conf option and ld_preload

using slacko is no go :arrow:

BTW I was thinking something less radical like altering the rox menu :twisted:

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#5 Post by SFR »

What I did:
1. I have devx installed, always 8)
2. Had to install Python 2.6.pet, too.
3. make (warnings here)
4. make install
5. In README there is described to add

Code: Select all

export LD_PRELOAD=/usr/local/lib/libtrash.so
to /etc/profile, so I did it at the top (just after first line)
6. Reboot.

I didn't touch libtrash.conf file.

Yeah, I agree, it'd be more convenient to simply alter ROX right-click menu - I've been searching a way to do it (for my Multi-Copy/Paste app), but failed...

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#6 Post by darkcity »

great I've sort of got it working on Slacko,

was putting LD_PRELOAD in etc/rc.d/rc.local instead of /etc/profile

but it needs tinkering-

/root/FileinRoot
-deleted to-
/root/.Trash/FileinRoot

/mnt/home/FileIn-mnt-home
-deleted to-
/root/.Trash/SYSTEM_ROOT/initrd/mnt/dev_save/FileIn-mnt-home

/mnt/sdb1/Filein-sdb1
-deleted to-
nowhere!

--

I can delete thing in Trash, maybe because I set TRASH_CAN = .Trash

:twisted:

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#7 Post by SFR »

...rc.local doesn't work for me, only /etc/profile
I have to use

Code: Select all

export TRASH_OFF=YES; rm -rf /root/.Trash/*
to purge.

libtrash.conf:
REMOVABLE_MEDIA_MOUNT_POINTS = /media;/mnt
I removed /mnt and recompiled - deleting from sdb1 works now, but as I read in README, deleted items from removable drives & CD/DVD-RW (??) will go to Trash also :?

Please let me know if you'll find out something new. :)

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#8 Post by darkcity »

REMOVABLE_MEDIA_MOUNT_POINTS = /media;/mnt
I removed /mnt and recompiled - deleting from sdb1 works now, but as I read in README, deleted items from removable drives & CD/DVD-RW (??) will go to Trash also Confused
I can't really figure that one out, as you wouldn't be deleting from cd any way?

will keep you posted ; -)

Post Reply