To add a new menu item, we need to install a package "nautilus action configuration".
Then from
system>preferences>nautilus actions configuration
Quote:
Menu Item And ActionLabel: Hide This File
Tooltip: Add file to .hidden so that it is hidden
Icon: usr/share/pixmaps/nautilus/erase.png
Path: /home/YOURUSERNAME/.hidefile.sh
Parameters: %d %f
Conditions
Filenames: *
Mimetypes: */*
Selection Contains: both
Multiple Files: unchecked (no)
Advanced Conditions
Only local files
Restart nautilus by pressing alt-f2 and entering nautilus -q to quite (don't do this if you are currently copying files etc) then open go to places > home or any other location to restart. Alternately you can just logout and back in. Now when you right click on a file or folder there will be a Custom option as you named it.
No comments:
Post a Comment