Florian Lindner wrote:
> Hello,
> I have noticed that fink has set a number of environment variables  
> (like QTDIR, KDEDIR, ...) that are also set when /sw/bin/init.sh is  
> not sourced even when the shell is not even executed (for example  
> Emacs started from Spotlight).
> Since I desperately try to set $LANG for applications that are started  
> this way I wonder where fink set these variables?

There is no other Fink-specific mechanism for setting environment 
variables than what is executed by /sw/bin/init.[c]sh, namely init.[c]sh 
itself and then all the scripts inside /sw/etc/profile.d/.

Individual applications can, however, have wrapper scripts that set 
environment variables before launching the main executable. For example, 
/sw/bin/texmacs or /sw/bin/scilab or /sw/bin/vpython2.5 are such wrapper 
scripts. I don't use Emacs.app from Fink, but I think its main binary 
named "Emacs" is also such a wrapper script that simply sources 
/sw/bin/init.sh before executing Emacs.bin. Have a look inside 
Emacs.app/Contents/MacOS/ and see what file types you find there.

-- 
Martin



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to