<p>FreeBSD bsd.local 12.0-CURRENT<br>
Geany 1.32, de_DE.UTF-8</p>
<p>I am trying to run <code>context</code> inside the make configuration<br>
<code>context "%d/%f"</code></p>
<p><code>context -v "/usr/home/martin/Dokumente/hallo.tex" (im Verzeichnis: /usr/home/martin/Dokumente) /bin/sh: context: not found</code><br>
the same command works well in the regular terminal</p>
<p>I cannot figure out where geany gets the env/$PATH from, or actually fails to get it. What do I need to configure where to have geany evaluate the environment?</p>
<p>I found an old thread from 2014 having the same problem and it remained unsolved (leaving hacks aside)</p>
<p><a href="https://www.linuxquestions.org/questions/linux-general-1/%24path-different-from-gui-terminal-and-from-application-geany-4175525583/" rel="nofollow"></a></p>
<p>What I have tried:</p>
<p>Running env as a make command does show a $PATH that misses the relevant path to the needed binary.<br>
<code>PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/home/martin/bin</code></p>
<p><code>$ which context /usr/home/martin/context/tex/texmf-freebsd-amd64/bin/context</code><br>
PATH is set in .bashrc:<br>
<code>export PATH=$PATH:/usr/home/martin/context/tex/texmf-freebsd-amd64/bin export MY_BASH=bashrc-greetings</code><br>
.profile is not read at all, a similar MY_PROFILE never shows with env.</p>
<p>Using the inbuilt terminal of geany, I get the same env as from the regular terminal, ie, $PATH is set</p>
<p>My settings for terminal in VTE shell are, exactly what <code>which bash</code> gives<br>
<code>/usr/local/bin/bash</code></p>
<p>I tried changing settings/tools/terminal from:<br>
<code>xterm -e "/bin/sh %c"</code><br>
to:<br>
<code>xterm -e "/usr/local/bin/bash %c"</code></p>
<p>That has no effect either. <code>/bin/sh: context: not found</code> remains</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1887">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9hVklHpRvEK0QQfZGjjGtlPdRj3ks5t_kWvgaJpZM4U0y08">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJz8vmDczorI4EIhOKBzTzIP3CMAjks5t_kWvgaJpZM4U0y08.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/geany/geany/issues/1887","url":"https://github.com/geany/geany/issues/1887","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"TrueOS env/$PATH settings don't work for execution (#1887)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1887"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "TrueOS env/$PATH settings don't work for execution (#1887)",
"sections": [
{
"text": "",
"activityTitle": "**tracing-home**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@tracing-home",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1887
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1887,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1887\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1887"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 349383996\n}"
}
],
"themeColor": "26292E"
}</script>