[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting global env variables [was: Congrats! [gnome font rendering]]



Drew Parsons <dparsons@emerall.com> wrote:
> On Fri, Jan 17, 2003 at 04:58:30PM +0100, Michael Banck wrote:
>> On Sat, Jan 18, 2003 at 01:16:17AM +1100, Drew Parsons wrote:
>> > And how can a package set the global environment variables it needs?  For
>> > instance, with regards to /etc/profile, we don't have an /etc/profile.d
>> > directory to write package-specific config files to, like other unices have.
 
>> Writing a small wrapper script might be the easiest solution to this
>> problem.

> Hmm, that won't actually help: I guess I misstated the problem.

> The situation is with Xprint, the X11 printing system provided by
> xprt-xprintorg (or xprt, sort of).  Client programs such as mozilla require
> environment variable XPSERVERLIST to be set to make use of it.  Now the
> variable "belongs" to xprt*, but it's used by mozilla and others (if it's
> not set, they just use the "normal" printing system).
[...]

I think I wrote this to you before: Ship a small bash-scriplet
(it'll be sourced, not executed) as
/etc/X11/Xsession.d/75xprt-xprintorg_setenv that sets the
environment-variable.
                  cu andreas



Reply to: