Saturday, September 20, 2008

Adding new menu entries in Nautilus - I

We can make new bash scripts and just simply add them as a menu item in nautilus, thus harnessing the power of nautilus.
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 Action
Label: 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: