Ubuntu Change Right-click menu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.