AEWP and environment variables
AEWP and environment variables
- Subject: AEWP and environment variables
- From: Alex Keresztes <email@hidden>
- Date: Mon, 18 Aug 2003 22:38:08 -0500
Sorry if this ends up being sent as a duplicate, but the message I sent
last night did not appear to be delivered to cocoa-dev.
I am running a tool with AuthenticationExecuteWithPrivileges and I am
setting the environment variable DYLD_FRAMEWORK_PATH in my application
to include the framework bundled in the application before the tool is
executed. I am using this a solution to the problem that if the
environment variable is not set then the tool can't find the framework
when loading because it is not installed on one of the expected
locations and the tool crashes with a dyld error. It seems to me that
this approach should work - it works if I simply run the tool from an
NSTask (it inherits the parent environment). However, when I do an
AuthenticationExecuteWithPrivileges, the tool always crashes with the
dyld load error.
It seems to me that this approach should also work with
AuthenticationExecuteWithPrivileges, because I feel like all it does is
a fork and executes a tool as root (as well as does authentication
rights checking), which means the child process should inherit the
parent processes environment variables. However, this does not work...
Any one care to provide any enlightment? Does it clean/ignore all of
the environment variables? Any solutions other than installing the
framework? I really rather not do that since I wanted my app to be drag
and drop.
Thanks for the help,
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.