| Author |
Message |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Mon 26 Mar 2012, 09:34 Post subject:
ROX filer auto trash |
|
Hi,
Is there a way to get ROX-filer to only have trash option (no delete) - apart from on the trash folder of course.
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 570
|
Posted: Mon 26 Mar 2012, 16:31 Post subject:
|
|
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" (?!)
Maybe someone more competent than me would like to test/comment this lib?
Because it's looking quite promising, isn't it?
PS. I'm running Lupuplus-528.001 now.
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Mon 26 Mar 2012, 16:46 Post subject:
|
|
Nice find, will give this a try Greetings!
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Mon 26 Mar 2012, 17:29 Post subject:
|
|
can you detail how you made it work? including conf option and ld_preload
using slacko is no go
BTW I was thinking something less radical like altering the rox menu
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 570
|
Posted: Mon 26 Mar 2012, 17:47 Post subject:
|
|
What I did:
1. I have devx installed, always
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: | | 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!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Mon 26 Mar 2012, 18:50 Post subject:
|
|
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
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 570
|
Posted: Tue 27 Mar 2012, 05:34 Post subject:
|
|
...rc.local doesn't work for me, only /etc/profile
I have to use
| Code: | | 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!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Tue 27 Mar 2012, 07:13 Post subject:
|
|
| Quote: | 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 ; -)
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
|