FROM : Alex Majora
DATE : Wed Nov 17 17:51:50 2004
On Wed, 17 Nov 2004 15:01:18 Daniel Eggert wrote:
>First off: Environment variables are passed from parent to child processes.
>If a process sets some environment variable, the child inherits those.
>Second: There is no default list.
So, each app invoked via double-click inherits what loginwindow.app has,
and/or loginwindow.app calls an execve() and sets certain vars for child
processes. Bottom line is (I guess) that the basic list is hard-coded at
some level.
Because I want my app to be run by any user on our systems, I've made my app
generate, execute, and delete temporary shell scripts in /tmp. From within
those scripts I can reference and run all of the special installed binaries
in /usr/local/lib and other places by adding those paths to the local PATH
var in the script.
I know it's not that pretty; perhaps there's a better way?
Thanks, Daniel.
Alex
DATE : Wed Nov 17 17:51:50 2004
On Wed, 17 Nov 2004 15:01:18 Daniel Eggert wrote:
>First off: Environment variables are passed from parent to child processes.
>If a process sets some environment variable, the child inherits those.
>Second: There is no default list.
So, each app invoked via double-click inherits what loginwindow.app has,
and/or loginwindow.app calls an execve() and sets certain vars for child
processes. Bottom line is (I guess) that the basic list is hard-coded at
some level.
Because I want my app to be run by any user on our systems, I've made my app
generate, execute, and delete temporary shell scripts in /tmp. From within
those scripts I can reference and run all of the special installed binaries
in /usr/local/lib and other places by adding those paths to the local PATH
var in the script.
I know it's not that pretty; perhaps there's a better way?
Thanks, Daniel.
Alex
| Related mails | Author | Date |
|---|---|---|
| Alex Majora | Nov 11, 22:14 | |
| Alex Majora | Nov 12, 01:54 | |
| Daniel Eggert | Nov 12, 11:41 | |
| Alex Majora | Nov 12, 18:00 | |
| elijah wright | Nov 12, 18:26 | |
| Alex Majora | Nov 12, 19:53 | |
| Tom Harrington | Nov 12, 20:26 | |
| Daniel Eggert | Nov 17, 15:01 | |
| Alex Majora | Nov 17, 17:51 | |
| John Labovitz | Nov 17, 20:26 |






Cocoa mail archive

