Skip navigation.
 
mlRe: Setting tcsh env vars for Cocoa app context?
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

Related mailsAuthorDate
mlSetting tcsh env vars for Cocoa app context? Alex Majora Nov 11, 22:14
mlRe: Setting tcsh env vars for Cocoa app context? Alex Majora Nov 12, 01:54
mlRe: Setting tcsh env vars for Cocoa app context? Daniel Eggert Nov 12, 11:41
mlRe: Setting tcsh env vars for Cocoa app context? Alex Majora Nov 12, 18:00
mlRe: Setting tcsh env vars for Cocoa app context? elijah wright Nov 12, 18:26
mlRe: Setting tcsh env vars for Cocoa app context? Alex Majora Nov 12, 19:53
mlRe: Setting tcsh env vars for Cocoa app context? Tom Harrington Nov 12, 20:26
mlRe: Setting tcsh env vars for Cocoa app context? Daniel Eggert Nov 17, 15:01
mlRe: Setting tcsh env vars for Cocoa app context? Alex Majora Nov 17, 17:51
mlRe: Setting tcsh env vars for Cocoa app context? John Labovitz Nov 17, 20:26