geany 1.37.1 (built on 2021-01-05 with GTK 3.24.24, GLib 2.66.4) on Manjaro Linux
I am unable to use execute(F5), I get the message: `06:38:20: Cannot execute build command "xterm -e "/bin/sh /tmp/geany_run_script_Z4MN20.sh"": No such file or directory. Check the Terminal setting in Preferences`
the terminal is not set to xterm, in the preferences I have:
`/usr/bin/gnome-terminal -e /bin/zsh %c`
I've tried other terminals as well.
The Compile and Build options do work
also xterm does not seem to be installed by default on Manjaro, and is not installed on my system.
`Edit->Preferences->Tools->Terminal`? https://www.geany.org/manual/current/index.html#tool-paths
Yes, I've done that. I just noticed that when I open geany it opens terminal instances repeatedly until geany is closed, with some terminal emulators they close instantly after they pop up, with others they remain open after geany is closed.
I just noticed that when I open geany it opens terminal instances repeatedly until geany is closed, with some terminal emulators they close instantly after they pop up, with others they remain open after geany is closed.
I assume you mean it opens a terminal instance each time you do execute, not autonomously :)
The intended operation is that Geany will wait for a terminal to complete before allowing another command so the user can tell Geany to issue a kill to the terminal and thus the process in it if it goes badly wrong (eg infinite loop). That way the user does not have to find the runaway process id and then issue the kill themselves. Then when the user closes the terminal and its process exits Geany gets a signal and returns the execute command to normal.
But some terminal programs open the "terminal" as a tab in a single instance and the terminal process then exits as soon as its communicated with that instance (the way Geany does by default if you open a file from the command line). Since the process it ran exits, Geany no longer has control over the terminal (tab) and it stays open until the user closes it.
You can still use those terminals, you just get different behaviour, or you can add the option that makes it not use a single instance to the command in Geany.
@JoelJarosz , I'm on Manjaro as well. This works for me:
`xfce4-terminal -e "/bin/sh %c"`
I also tried with zsh.
When I remove the double-quotes and click on execute, I don't get an error like you do, but instead, nothing at all happens. Have you tried putting the double quotes around `/bin/zsh %c`
I had same problem. I managed to solve it:
Check default terminal emulator that you using (don't change anything): `sudo update-alternatives --config x-terminal-emulator`
Open Geany and replace the terminal there: `Edit > Preferences > Tools > Terminal`
It should be now: `your-terminal -e "/bin/sh %c"`
Solved it by removing double quotes around `your-terminal -e "/bin/sh %c"` to `your-terminal -e /bin/sh %c` and restarting geany
@shufuwa the behaviour of terminal emulators varies, without specifying which one you are using your post is not useful to anyone else.
github-comments@lists.geany.org