On Mon, 30 Jul 2007, Kresnik Igor wrote:
> My name its Igor. i,m install QT designer 4.3.0
> Now i like know where in file named profile i must write
>
> PATH=/usr/local/Trolltech/Qt-4.3.0/bin:$PATH
> export PATH
/etc/profile here starts off:
1 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
2 # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
3
4 if [ "`id -u`" -eq 0 ]; then
5 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/export/bin:/export/X11/bin"
6 else
7 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/export/bin:/export/X11/bin:/usr/games"
8 fi
Line 4 selects superusers; line 5 is their PATH; line 6 selects everybody
else; line 7 is their PATH. Hmm, both PATHs seem to be the same. I wonder
why the "if" then.
So if you want that to apply to root, add it to line 5 as
PATH="/usr/local/Trolltech/Qt-4.3.0/bin:/usr/local/sbin:/usr/local/"...
and if you want it to apply to everyone else, add it to line 7 in the same
way. If you want it to apply to both, you can either do both modifications,
or put PATH="/usr/local/Trolltech/Qt-4.3.0/bin:$PATH" (it's already been
exported; no need to do it again) after line 8.
Frankly, you probably shouldn't run QT Designer as root, so I would change
only line 7. (THAT's why the "if"!)
--
-eben QebWenE01R@vTerYizUonI.nOetP royalty.mine.nu:81
> A: It's annoying as hell
> Q: Why do most people hate top-posting? -- Lots42 The Library Avenger
http://www.fscked.co.uk/writing/top-posting-cuss.html
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:56:50 EDT