# Knime PATH does not match to system user PATH Variable

**URL:** <https://forum.knime.com/t/knime-path-does-not-match-to-system-user-path-variable/58994>\
**Category:** Feedback & Ideas\
**Tags:** bug\
**Created:** [January 10, 2023, 11:41am UTC](https://forum.knime.com/t/knime-path-does-not-match-to-system-user-path-variable/58994 "2023-01-10T11:41:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [January 12, 2023, 10:02am UTC](https://forum.knime.com/t/knime-path-does-not-match-to-system-user-path-variable/58994/2 "2023-01-12T10:02:41Z")

</div>

Update … As identified by @carstenhaubold in:

> [@External Tool "issues" and high difficulty to use](https://forum.knime.com/t/external-tool-issues-and-high-difficulty-to-use/58252/19):
>
> Aaah bulb. Learn something new every day they say… wink This seems to be a security feature of OSX. When a program is started normally, meaning by double clicking the application or calling it via Spotlight, the PATH variable is cleared out by OSX. However, if you start KNIME from a terminal, you can make it inherit the full environment like so: navigate into your KNIME application’s Contents/MacOS folder with the terminal, from your output above this seems to be /Applications/KNIME.app/…

The issue is caused by “security mechanisms” of OS X. In order to circumvent / expose the users PATH variable, knime must be started via command line by:

1. Navidating to the executabel via `cd /Applications/KNIME.app/Contents/MacOS/`
2. Start knime via `./knime`

However, this comes with a not so insignificant disadvantage as the terminal must, under any circumstances, being kept open. If close by accident, knime is immediately stopped (not properly shut down).

Adding to this. the start up window seems to not list the loaded / installed extensions. However, they are still accessible (bug or feature?)

 ![Bildschirm­foto 2023-01-12 um 10.57.20](https://forum-cdn.knime.com/uploads/default/original/3X/6/7/677f2e90a708e24c9c5e134e1f2813a15c5e17fb.jpeg)

I’d like to propose to enable defining / overwriting the PATH variable manually in the External Nodes. Similar to how it was made possible by @AnotherFraudUser in AF Utilities (big thanks!)

> [@External Tool "issues" and high difficulty to use](https://forum.knime.com/t/external-tool-issues-and-high-difficulty-to-use/58252/14):
>
> Hi @mwiegand, @iCFO, took a bit longer due to issues with the node deployment. But I added a script execution node to the AF Utilities which hopefully covers at least the basic usecases from the BASH node [grafik] I added env-prefs to maybe also cover @mwiegand problem where you can change or add new enviroment settings used by the node (by default it reads all enviroment settings which are used by default) But have to say did not use the old bash node at all - so things could …

Reason is, the “security” measure might get in this or another way implemented by other OS vendors too. The struggle which many had to go through to identify the cause would be easily avoidable but also would allow to add a significant amount of flexibility in defining binaries.

---

_[View the full topic](https://forum.knime.com/t/knime-path-does-not-match-to-system-user-path-variable/58994)._
