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

Lex Trotman elextr at xxxxx
Tue Nov 23 21:36:18 UTC 2010

On 24 November 2010 03:01, Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> On Wed, 17 Nov 2010 13:40:42 +1100
> Lex Trotman <elextr at gmail.com> wrote:
>> 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.
> Unfortunately I don't know that a shell login argument is portable. I
> think -l is specific to bash, but even --login doesn't work for dash
> (the default /bin/sh on Ubuntu IIRC).

Patch actually developed and tested on Ubuntu.

> We could have string prefs for what arguments to pass to
> build/execute, empty by default.

Maybe it should be the whole shell command?? eg sh -l (or not -l as appropriate)


> Nick
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

More information about the Devel mailing list