[launchd-dev] Launchd sanitizing python environment

Heath Carlisle heath at brownbarn.com
Fri Dec 18 13:59:32 PST 2009


Hello, I'm a relative noob to launchd. Thanks in advance for any help.

10.5.8 , plist run as a User LaunchAgent

I am running gimp batch jobs via a wrapping python script.

When I run the wrapper from the command line (bash), all is well. When I
schedule it via launchd, the environment appears to become sanitized and
gimp cannot be found.(I'm comparing environments by issuing the "env"
command from the wrapper script.)

I can set, for instance, the $PATH via the plist <EnvironmentVariables>
key,(which will then find gimp) but then other dependant environment
variables cannot be found, such as the display. Since the display (and
others) are /tmp/ items, they cannot be "hard-wired" into the plist.

As gimp requires a host of helpers(X11, GTK+, GEGL, PANGO etc), debuging
these one env variable at a time seems monumental.

Is there a way to just run the job as if it were from the user's shell?
Perhaps I've overlooked some basic concept?

thanks, -hc


-- 
View this message in context: http://old.nabble.com/Launchd-sanitizing-python-environment-tp26799801p26799801.html
Sent from the Launchd mailing list archive at Nabble.com.



More information about the launchd-dev mailing list