Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need info !!!!!!!!!




On Dec 28, 2004, at 16:00, Creed Erickson wrote:


On Dec 28, 2004, at 3:30 PM, Justin Walker wrote:


On Dec 28, 2004, at 14:54, Daryle Walker wrote:

Isn't there a way to have CLI apps use the Aqua variables? I think I saw once some Perl code that read the Aqua file's variables, so ".profile" or whatever would call the Perl program to gain a copy of the variables. The code didn't work for me. I hope someone out there can come up with better code.

I'm not well-versed in this stuff, but what you would need is a script/program invoked by your startup shell script to read and parse the XML file and install the results in your shell's environment.

Whatever is set into the environment in ~/.MacOSX/environment.plist is automatically available in the shell environment for any Terminal.app session. This probably does not hold for xterms, remote ssh logins, etc, but as long as the process has the WindowServer process in its heritage, the plist described variables should be in the environment.

Well, well, well...

Thanks for pointing this out.

By experiment, it does appear that this file is inserted into the environment (by the WindowServer, I'm guessing), and Terminal and X11.app both pick it up.

A shell running in either an 'xterm' spawned by X11.app or a Terminal.app window will have these variables in the exported environment.

Can't say what happens for X using other window servers.

One learns new things...  I don't forgive that easily.

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden
References: 
 >Re: Need info !!!!!!!!! (From: Daryle Walker <email@hidden>)
 >Re: Need info !!!!!!!!! (From: Justin Walker <email@hidden>)
 >Re: Need info !!!!!!!!! (From: Creed Erickson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.