[Geany-devel] Missing environment variables for builds and executes

Chow Loong Jin hyperair at xxxxx
Wed Nov 24 02:15:00 UTC 2010


On Wednesday 17,November,2010 10:40 AM, Lex Trotman wrote:
> Hi,
> 
> When Geany is started from the Gnome menu it doesn't get environment
> variables set in .profile, .bashrc etc.  Other window managers seem
> ok.
> 
> This means that builds don't see CFLAGS, python executes don't see
> PYTHONPATH etc :-(
> 
> Although builds and executes run in shells, a non-interactive shell
> does not load any startup files.
> 
> The attached patch adds the option (-l) to run the build and execute
> shells as login shells which will load startup files.
> 
> Two hidden prefs build_in_login_shell and exec_in_login_shell allow
> you to disable this for builds or executes respectively if running
> your startup scripts causes some problem.

Hi,

I actually believe that on some distros .bashrc/.profile is sourced by default
on gdm, and on others, .xprofile is used for this purpose. I don't think a login
shell or interactive shell should be used for this purpose though.

Perhaps what could be done would be to allow build environment variables to be
customized in Geany?

-- 
Kind regards,
Loong Jin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/devel/attachments/20101124/efff8a76/attachment.pgp>


More information about the Devel mailing list