#!/usr/bin/env python to the script and
chmod +x in terminal, but on double clicking it still asks for these 4 options.
I want it to automatically open in terminal. Is it possible? I'm using Ubuntu 12.10.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You may want to define a
.desktop file to run your python application in a terminal on double click on this
This would be a basic content needed:
[Desktop Entry] Type=Application Exec=python /full/path/to/script/script.py Icon=/path/to/icon # only if needed Name=Name of script Terminal=true
Save this anywhere (putting in
~/.local/share/applications/ will also make it executable from the Dash etc.) as
name-of-script.desktop and give it executable permission.