1

When I try to execute a program in Geany it opens a terminal window and goes to the file's parent directory but does not execute my program.

For example the terminal opens in the /pythonEx directory but doesn't run if.py file. The script runs fine if I call it directly.

my terminal screen

  • 2
    Your question is unclear, you should describe it more clearly so we can help you. – Ravexina May 10 '17 at 16:58
  • what should I add for description? there is no error in terminal when I use F5 to execute. I can run my python file in terminal directly but when I use F5 it just opens terminal window and it is in my file directory. I think it cant type or run "python if.py" in this window – Sina Alvandi May 10 '17 at 17:35
  • Got it... can you provide some information about the location of file and script itself? – Ravexina May 10 '17 at 17:48
  • my file is in home/vahid/pythonEx/if.py – Sina Alvandi May 10 '17 at 17:53
  • What version of geany you are running? – Ravexina May 10 '17 at 17:58
1

Finally I couldn't execute my program in new opened terminal window but by changing Geany preferences it can execute python script in its terminal (bellow the editor window)

so Open the Edit -> Preferences go to terminal tab and check two last items:

  • Execute programs in the VTE
  • Don't use run script

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.