On Mon, 9 Jul 2001 11:01, Peter Ruskin wrote:
> On Sunday 08 July 2001 20:46, Sridhar Dhanapalan wrote:
> > Does anybody know how to get environment variables (like "export...")
> > working system-wide, that is, on the command line (BASH for me), in the
> > log screens (e.g. on Ctrl-Alt-F12), and in X?
> >
> > I prefer to have X automatically load at startup (since it frees-up a
> > console), but this means that I cannot take advantage of BASH's
> > environment variables (configurable in ~/.bashrc and /etc/bashrc). I
> > know I can load apps from a terminal, but I'd prefer to have something
> > available throughout all of my X environment (for panel applets, etc.).
> > I have placed my lines in /etc/X11/Xsession, but this doesn't appear to
> > work anymore since I installed KDE 2.2 beta 1 (I use GNOME, though).
> >
> > Environment variables don't seem to work on the log screens (e.g. when
> > you press Ctrl-Alt-F12) or for system processes (daemons, etc.), either.
> > My system clock is set to UTC (i.e. Greenwich Mean TIme), and I use
> > environment variables to enter my time zone settings so that the
> > displayed time is correct (that way I can set my system time from an NTP
> > server with ntpdate). It works fine in BASH, and as I mentioned above it
> > used to work in X. Cron is always ten hours behind my local time (since
> > I'm UTC +10h), and it can become annoying when it begins maintenence
> > tasks during the day when I'm using the computer.
> >
> > Alternatively, is there a better solution to my setup?
> >
> > Any help would be much appreciated.
>
> /etc/profile is your friend
I thought so too. I have already tried placing my lines in /etc/profile yet
it doesn't seem to work as it should. Two lines I wish to execute are:
# Enable QT Anti-Aliasing.
export QT_XFT=1
# Enable Sun Java Plug-in.
export NPX_PLUGIN_PATH=/usr/java/jre1.3.1/plugin/i386/ns4/
Thanks for the response.
Exporting QT_XFT=1 should enable anti-aliasing on any QT2 application I load
(even non-KDE apps), despite the fact that I'm not using KDE as my desktop.
This used to work fine when placed in /etc/X11/Xsession, for apps like Kmail,
Konqueror and Opera. Nowadays, however, I am resorting to using shell scripts
that export QT_XFT=1 before loading the required app. The second variable is
necessary to enable Sun's Java plug-in (otherwise it won't work in Netscape).
Any other ideas?
TIA.
--
Sridhar Dhanapalan.
"There are two major products that come from Berkeley:
LSD and UNIX. We don't believe this to be a coincidence."
-- Jeremy S. Anderson