Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 08:54
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
ROX filer auto trash
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: 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.

Twisted Evil

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 879

PostPosted: 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" (?!) Laughing

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!

_________________
[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
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: Mon 26 Mar 2012, 16:46    Post subject:  

Nice find, will give this a try Twisted Evil Greetings!
_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: 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 Arrow

BTW I was thinking something less radical like altering the rox menu Twisted Evil

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 879

PostPosted: Mon 26 Mar 2012, 17:47    Post subject:  

What I did:
1. I have devx installed, always Cool
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
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: 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

Twisted Evil

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 879

PostPosted: 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 Confused

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

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
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2411
Location: near here

PostPosted: 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 ; -)

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0636s ][ Queries: 11 (0.0189s) ][ GZIP on ]