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

Lex Trotman elextr at xxxxx
Wed Nov 17 02:40:42 UTC 2010


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.

Cheers
Lex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_login_shell.patch
Type: text/x-patch
Size: 2648 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20101117/8175fade/attachment.bin>


More information about the Devel mailing list