Results 1 to 2 of 2

Thread: I can not open python .py files with double click

  1. #1
    Join Date
    Mar 2009
    Beans
    9

    I can not open python .py files with double click

    I have several python .py files

    I opened it and ran it when I double click with my mouse

    Nowadays my python .py files does not open and run anymore when I double click with my mouse


    To fix this troble I have:

    * place

    #!/usr/bin/env python

    in the fist line on my .py files (its always have been there)

    * chmod +x my_file.py

    * set python3 as default application to open .py files

    * set python2 as default application to open .py files

    * set env as default application to open .py files


    All this mess start when I set GEDIT as default program to open .txt files and other files of type "plain text document" from NEMO FILE MANAGER.



    How can I fix this mess?

  2. #2
    Join Date
    Mar 2017
    Beans
    1,018

    Re: I can not open python .py files with double click

    Check your setting in nautilus > preferences > behaviour > executable text files

    Quite a while ago nautilus changed the default setting to "Display Them"....used to be "ask what to do".
    Last edited by again?; February 10th, 2019 at 05:31 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •