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

Enrico Tröger enrico.troeger at xxxxx
Wed Nov 24 23:44:31 UTC 2010

On Thu, 25 Nov 2010 10:36:51 +1100, Lex wrote:

>2010/11/25 Enrico Tröger <enrico.troeger at uvena.de>:
>> On Wed, 24 Nov 2010 10:15:00 +0800, Chow wrote:
>>>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.
>>>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.
>> I agree completely.
>> If Ubuntu messed up with their system, it's their problem. Why should
>> we fix Ubuntu's or Gnome's mistakes in Geany?
>> In other, less harsh words, I think an applicaton should not fix the
>> problems in the outer environment.
>Thats very harsh for the poor Ubuntu users who didn't cause the
>problem themselves, especially as it causes significant problems eg I

True. Still I see this as an Ubuntu problem as they
(Ubuntu/Gnome/whatever developers, not users) messed it up. Of course,
the end user sitting in front of the box and just wishing to simply
work, doesn't care who is at fault if it doesn't work.

>But since Chow fixed the problem I forgive you :-)

Uh, lucky me. Thank you.



Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20101125/81e347fe/attachment.pgp>

More information about the Devel mailing list