Results 1 to 4 of 4

Thread: how to launch python files in a terminal by double clicking?

  1. #1
    Join Date
    Feb 2006
    Beans
    322

    how to launch python files in a terminal by double clicking?

    I have a terminal based Python program

    This is what i want to do:

    Have a launcher icon which will launch a terminal window with my program already running.

    I just want to double click an icon on my desktop to run my program in a terminal.

  2. #2
    Join Date
    Jun 2006
    Location
    Manchester, UK
    Beans
    305

    Re: how to launch python files in a terminal by double clicking?

    try using

    bash /path/to/file/program.py

    might work

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: how to launch python files in a terminal by double clicking?

    Quote Originally Posted by galileon View Post
    try using

    bash /path/to/file/program.py

    might work
    Nope. It doesn't.

    1. Create a launcher (typically right-click on desktop and choose "Create Launcher")

    2. In the Type field, select "Application in Terminal"

    3. Fill in the name, specify the program, and any comments.

    Viola! Your program will launch in a terminal!

  4. #4
    Join Date
    Feb 2006
    Beans
    322

    Re: how to launch python files in a terminal by double clicking?

    tried it and got:
    "There was an error creating the child process for this terminal"


    it runs fine if i go into terminal and go ./program.py

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
  •