Method/Step
1.This is the right-click menu that we opened on the Desktop folder Ubuntugege, you said you added the right-click menu item in ~/.gnome2/nautilus-scripts/but it just didn't show, so You think Ubuntu 12.04 is a good boy, Ubuntu 14.04 How to use how uncomfortable!
2.when I tell you, from ~/.local/share/nautilus/scripts/here you can enter its heart, so you find its world is also very good, but you did not understand it!
3.add two text files, the names and contents are as follows (don't be afraid, it is Chinese, it dare not eat you):
Edit as Administrator
#!/bin/bash
exec gksu gedit $NAUTILUS _script_selected_file_paths
Browse as Administrator
#!/bin/bash
exec gksu Nautilus $NAUTILUS _script_current_uri
Note: To set them all as executable files.
4.Then go back to the desktop, select a file to open the right button, you find the Srcipts menu under the new two small menu!
####################################
The four environment variables provided by Nautilus are:
Nautilus_script_selected_file_paths: The path of the selected file separated by the new row (unless it is a local file)
Nautilus_script_selected_uris: The URI of the selected file separated by the new row
Nautilus_script_current_uri: URI of the current location
Nautilus_script_window_geometry: Position and size of the current window
Ubuntu Change Right-click menu