On Monday 09 July 2001 06:29, Sridhar Dhanapalan wrote:
> 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/
>
>From my /etc/profile...
export NPX_PLUGIN_PATH=/usr/java/plugin/i386
>
> 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.
--
Peter Ruskin, Wrexham, Wales.
Registered Linux User No. 219434 ( see http://counter.li.org/ )
Linux Mandrake release 8.0 (Traktopel) for i586
Linux 2.4.3-20mdk-win4lin-pnr, KDE: 2.1.2, Qt: 2.3.1
Uptime 11 hours 56 minutes