Shoaib Mirzaei
Shoaib Mirzaei

Reputation: 522

geany does not open terminal to run my code, unless there is another terminal window is open

I am using geany version 1.36 in linux, whenever I press f5 or click on run icon in toolbar, it does not open any terminal window to run my code in. but if I open another terminal window and do nothing in it, just let it be there, all of a sudden f5 and run button work perfectly. how can I fix this issue?

Upvotes: 0

Views: 2419

Answers (2)

xyscramble
xyscramble

Reputation: 1

May you don't have the correct path for the terminal, every Linux OS comes with different terminal.

Try installing xterm:

sudo apt-get install xterm

And go to Edit>Tools>Preferences>Terminal, change the path for:

xterm -e "/bin/sh %c" 

Upvotes: 0

J P F 07
J P F 07

Reputation: 58

Try this:

Go to : Edit --> Preferences --> Tools --> Terminal :

Refer here For more clarification

And replace the existing lines with any of the given texts... (Adding Terminal path here)

  • x-terminal-emulator -e /bin/sh %c
  • mate-terminal "-e /bin/sh %c"
  • x-terminal-emulator -e "/bin/sh %c"
  • xterm -e "/bin/sh %c"
  • xfce4-terminal -e "/bin/sh %c"

The 1st one worked for me.

For More Information about this issue Refer This Link

Upvotes: 4

Related Questions