Friday, October 7, 2011

Create Move to Trash for pcmanfm-mod

People who get the creeps if their files are deleted permanently by deleting in a file manager can choose for a right click option Move to Trash folder in the pcmanfm-mod context-menu.

First step: create the script
It is a modification of a volume aware delete script from here
To spare you the work of the modification I put the modified script here:
Copy it to a text editor and save it as del, make it executable
chmod -v 755 /path/tofolder/del

and move it to /usr/bin/.

Second step
Now we can create the right click Move to trash option for pcmanfm-mod

First copy the file /usr/share/applications/pcmanfm-user-f6.desktop to ~/.local/share/applications/
Edit this file in second and third line to:
Name=Move to Trash
Save. Done. When restarting pcmanfm-mod and you right click on a file or folder you want to delete you see the option Move to Trash
Use it and your file will be save in the HOME/.local/share/Trash/files folder.

No comments:

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.