Skip to content

Environment of shell commands #251

Answered by callumenator
callumenator asked this question in Q&A
Discussion options

You must be logged in to vote

I tested this, and it requires giving a relative path to the binary, e.g. this now works

# Config
KEYMAPPER_BIN = "./keymapperctl"

I had a play with adding a this to the plist:

<key>EnvironmentVariables</key>
<dict>
    <key>PATH</key>
    <string>${basepath};$PATH</string>
</dict>

And this seemed to work for me - it looks like it sets path to my normal user path plus the keymapper dir, which means i can run keymapperctl (and some other utils) without specifying a path.
(I don't know what I'm doing tho, first time I've tinkered with a launchd config)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@houmain
Comment options

Answer selected by houmain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants