• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AEWP and environment variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: How to get NSColorPanel's target?
  • Next by Date: XML-RPC help
  • Previous by thread: Re: How to get NSColorPanel's target?
  • Next by thread: XML-RPC help
  • Index(es):
    • Date
    • Thread