Ubuntu-14.04. Sh. py, double-click the solution to the problem

Source: Internet
Author: User

The default file in Ubuntu-14.04 is opened with gedit text instead of the default double-click inside the BT5 to open four choices, for example (this is the result after configuration, do not change the BT5 system):

The direct text opens, albeit very secure. The actual production is certainly not possible! This is not available by default, so you need to configure the results as you see them.

Configuration method

1, first use the sudo apt-get install dconf-editor command installation dconf-editor. The default is not installed;

2, after installation, run the Dconf-editor command to call out the form, press org->gnome->nautilus->preferences path to find the Executable-text-activation setting options, The default key value is display, which is the default text editor. Change to ask, for example, as seen in:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvemhhbmgxmje4/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast "/>

3, according to the above correct setting or not. We can give it a try. Create a new. py file on the desktop 111.py, double-click or text to open, because there is no running permissions to do? A final step. Use chmod u+x xx.s or chmod u+x xx.py command to run permissions on the script. The next thing you can see is the effect shown in figure one.

It is impossible to do without this step.


This article by @the_third_wave (blog address: http://blog.csdn.net/zhanh1218) original. What is not covered will be updated on a regular basis. Please correct me for any errors.

If you see this blog post is not complete, that is I to prevent the crawler first to announce half of the reasons, please see the original author blog.

Let's say this blog post is helpful to you. For a good network environment, not recommended reprint, recommended collection. Suppose you must reprint. Please bring the suffix and the address of this document.

Ubuntu-14.04. Sh. py, double-click the solution to the problem

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.