When I try to run a source code in Geany, it produces this error message
"/bin/sh ./geany_run_script.sh" (No such file or directory)
You can see the error message in action, here . (I can’t import the image yet, as a new user)
I’ve tried with gnome-terminal and Geany works without issues.
After some tests, I’ve concluded this might be a problem with /usr/bin/mate-terminal.wrapper, but I’ll let the Devs decide what the problem is. I’m here only to report the problem and outline two workarounds I’ve found.
How to reproduce:
Install Geany and try to run any source code , for example Python or C#.
Workaround 1:
GoTo Geany Preferences → Tools → Terminal and change the command from
x-terminal-emulator -e "/bin/sh %c"
to
/usr/bin/mate-terminal -e "/bin/sh %c"
That works,
also indicates (imo) something wrong in /usr/bin/mate-terminal.wrapper.
Workaround 2:
Revert (or let) Geany to its default settings, meaning
x-terminal-emulator -e "/bin/sh %c"
Open the /usr/bin/mate-terminal.wrapper
and change the line
elif arg == '-e':
newargs.append('-x')
to
elif arg == '-e':
newargs.append('-e')
Regards