I'm tempted to close this bug (it's been hijacked since the original "full disk acess" was solved, and have the shell discussion over at #2363
But...I found https://apple.stackexchange.com/questions/106355/setting-the-system-wide-pat... to set system-wide environment.
but according to this logic, Geany should never be started from the command line where it gets all the environment variables from the shell (and people clearly do it and I haven't heard about any problem because of that).
Huh? Where did I say that? If Geany is started on the command line, and it happens to inherit environment from there, that's fine with me. We must not depend on getting the environment as if we were launched on the command line.
We use /bin/sh as a helper to spawn processes, not as a tool to read further configuration. I don't suggest to put anything to ~/.profile to make things work in Geany.
Geany is not a shell application, and consequenetly must not depend on configuring one's shell and then configure Geany to use that shell. Instead, the OS's standard ways of setting system/user session wide environment varriables should be consulted as for any other application as well (e.g. on Windows there is this extra dialog where you can set user and system environment variables).
We have enough trouble supporting different OSes, I do not want to get even more trouble by supporting different shells on each of the OSes.