How to set environment variables for system extension

Hi Experts,

I knew there is LSEnvironment for defining environment variables to be set before launching.
e.g.
<key>LSEnvironment</key>
<dict>
<key>PATH</key>
<string>/Users/flori/.rvm/gems/ruby-1.9.3-p362/bin:/Users/flori/.rvm/gems/ruby-1.9.3-p362@global/bin:/Users/flori/.rvm/rubies/ruby-1.9.3-p326/bin:/Users/flori/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:</string>
</dict>

How about system extension? Thanks a lot.

Did you ever figure out the answer to this?

LSEnvironment is definitely the wrong option here; it’s designed for apps and sysexes are not apps. I haven’t tried this myself but the XPCService > EnvironmentVariables property, as documented in the xpcservice.plist man page might work. Give it a whirl and let us know how you get along.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to set environment variables for system extension
 
 
Q