See https://github.com/geany/geany/issues/2390 for a similar issue on Linux. .bashrc is not the right place to configure things that should be visible in arbitrary GUI apps. Having users configure the shell so we can source the wrong files seems wrong to me.