I have reinstalled slack 10.2 about 3 times now trying to fix this problem. I don't have any .bashrc or .bash_profile files in my root directory or in my personal /home directory. This is strange. When I am logged into my personal account on KDE, here is my $PATH directory:
Code:
matt@slack:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
Here is my root $PATH after doing 'su':
Code:
matt@slack:~$ su
Password:
root@slack:/home/matt# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
Now I log into my root account w/ KDE. Here is my $PATH for root.
Code:
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/crap:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin
So here is what the $PATh variable is in my /etc/profile:
Code:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"
So here is how I interpret this. When I am logged into my personal account (/home/matt), the /etc/profile defined $PATH variable is, /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games". Then it looks like, /opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin, is being added to the end of the $PATH variable when I log into my personal account.
When I am logged into my root account using 'su', the $PATH variable is this, /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin. But when I log into my root KDE session, this is the $PATH variable, /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/crap:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin. So again, /opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin, is being added to the end of my $PATH variable.
I can modify the $PATH variable in /etc/profile by adding to the end of it /crap. Here it is now:
Code:
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/crap:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
Anyone else getting a headache?! This is a Slackware problem ONLY. I installed Fedora Core right over Slackware and it didn't have any of these problems. Then I thought I cured the problem, so I reinstalled Slackware again, and it is still happening!!!
Can anyone help? Anyone?