A possible problem is that the shell in VTE is not started as a login shell (by default) and so it doesn't read the relevant startup scripts for environment. And if Geany is started from the windows menu it likely doesn't run in a shell, and so no environment either.
Try adding `--login` to the bash command in `Preferences->Terminal->Shell:`