23 December 2020 Noon
geany version: 1.32 ubuntu version: 18.04
Lately I've been running my machine until it shuts off from a drained battery.
Today I noticed that when I run python programs using the toolbar execute button, the icon does not change back to a gear from the circle-slash when the program finishes.
The practical effect of this is you have to click the button again to get the gear icon, but the terminal closes instead of remaining open. This is very inconvenient since it makes it impossible to compare outputs from two different versions side by side.
**Workaround**
I solved the problem by opening the "set build commands" dialog and changing the execute command to something that throws an error, e.g. python "%p%f" (no '/' between), running something, and then changing the execute command back to its original value. (python "%f")
Evidently, geany stores some state that is not reset owing to the crash, and in some cases is not sanitized on startup.