gd2 MacPorts packaging bug

Brandon Allbery allbery.b at gmail.com
Fri Jul 29 09:41:23 PDT 2011


Let's say you have a project that requires a custom font path.  Oops!
Your .bashrc just overwrote it with the default....

On 2011-07-29, mark brethen <mbrethen at aim.com> wrote:
> I created the environment.plist and entered the GDFONTPATH and
> GNUPLOT_DEFAULT_GDFONT string values. This worked also. So, are you saying I
> shouldn't use .bashrc anymore?
>
> -Mark
>
>
>
> On Jul 28, 2011, at 8:14 PM, Brandon Allbery wrote:
>
>> On Thu, Jul 28, 2011 at 20:17, mark brethen <mbrethen at aim.com> wrote:
>> wxMaxima,  the environment variable doesn't get passed along. But gnuplot
>> reads it's init file when ever a job is submitted to it..
>>
>> No *login* shell is involved anywhere along the way (setting environment
>> variables in e.g. .bashrc is not an especially good idea, because it's
>> harder to override them when some other program needs them to be
>> different).  Most Linux desktop environments behave much the same way, and
>> they generally provide some way to set the environment of the desktop
>> system itself for cases like this.
>>
>> For OS X you want to look at ~/.MacOSX/environment.plist.  There are
>> several preference pane add-ons for it, or you can edit it directly via
>> the XCode Property List Editor or as XML text.
>> http://developer.apple.com/library/mac/#qa/qa1067/_index.html
>>
>> --
>> brandon s allbery                                      allbery.b at gmail.com
>> wandering unix systems administrator (available)     (412) 475-9364 vm/sms
>>
>
>


-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms


More information about the macports-users mailing list