I added those same exports to my '~/.profile' file, and it worked.
Thank you!


On Sunday, April 6th, 2025 at 2:53 PM, Enrico Tröger via Users 
<users@lists.geany.org> wrote:

> Hi,
> 
> On 06.04.25 19:56, ba-open-git via Users wrote:
> 
> > I have a couple variable exports in my bashrc file. I add LIBRARY_PATH and 
> > C_PATH and add the paths to my homemade libraries so that I don't always 
> > have to include the 'L' option for compiling.
> > Is there a way to add this to Geany? For example, I have a csv file 
> > library, and I
> > #include <csv.h>
> > No problems compiling in a separate terminal, but when I try to build in 
> > Geany, I get the error:
> > <file>.c:x:y: fatal error: csv.h: No such file or directory.
> 
> 
> this is most probably because Geany is started from the application menu
> or in other terms by the desktop environment.
> In those cases, ".bashrc" is usually not used.
> 
> To verify, you could try starting from a terminal where those
> environment variables work. Then those variables should also be
> available in the VTE in Geany.
> 
> If this is the problem, you can try to define the environment variables
> in "~/.profile" instead. This file might be read by your desktop
> environment and so be passed to Geany when started.
> Note that you need to logout and login again for this change to take effect.
> 
> If this won't work, it might depend on your desktop environment how to
> set global environment variables.
> 
> See also similar issues (there might be more in the issue tracker):
> https://github.com/geany/geany/issues/2877
> https://github.com/geany/geany/issues/1887#issuecomment-399790385
> https://github.com/geany/geany/issues/3381#issuecomment-1409628227
> 
> Regards,
> Enrico
> 
> _______________________________________________
> Users mailing list -- users@lists.geany.org
> To unsubscribe send an email to users-le...@lists.geany.org
_______________________________________________
Users mailing list -- users@lists.geany.org
To unsubscribe send an email to users-le...@lists.geany.org

Reply via email to