[Github-comments] [geany/geany] TrueOS env/$PATH settings don't work for execution (#1887)

tracing-home notifications at xxxxx
Sun Jun 24 19:10:18 UTC 2018


@codebrainz thanks for the thoughts. The Preferences->Terminal->Shell  was of course `/bin/sh` before. Changing it to bash a futile attempt...

The idea of providing the full path fails.  `context` itself is a wrapper and then further calls are made. 
But actually I get: `bash: context: Kommando nicht gefunden.` It can't find bash. Back to square one. The $PATH to bash is added in `.bashrc`. It is also added in `.profile`, but, as noticed before, that is not evaluated.

>From `man sh` I see that `/etc/profile` or the `~/.profile` are used... I tried adding a PATH into both of them .... the path is never set. sh is only declared as "default" shell for FreeBSD

`PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin:/usr/home/martin/context/tex/texmf-freebsd-amd64/bin; export PATH `

Could the hardcoding of the /bin/sh call cause part of the problems?

Which brings me to @elextr comment. Yes, very valid thought. But wouldn't some environment for those programs exist? And, unless hardcoding prevents it, that should be configured somewhere. 

My question then: how does geany pick up the environment of the current user? 

Reading around on the topic, there seem to be different approaches on how a program is called from the GUI. A thread about the atom editor, albeit referring to OS X, goes through similar thoughts. No real result is reached. I have had similar experiences on Mac in the past with occasional Apps

`https://github.com/electron/electron/issues/550`

I tried something similar with gvim, starting it from the GUI it fails to get the environment too. Starting vim (not gvim) from the GUI sometimes works, sometimes doesn't. Starting either via terminal, there is no problem as with geany. I used this to find out what env I have in vim/gvim:

`
:sh 
env
`

In any case, whatever happens in the background between geany (gvim) and the Lumina Desktop is not as desired. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1887#issuecomment-399779956
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180624/f4d75f8f/attachment.html>


More information about the Github-comments mailing list