PDA

View Full Version : [SOLVED] Where can PATH be set other than /etc/environment?



justanotherhandle
December 24th, 2009, 08:25 PM
The path that is set in /etc/environment looks like this:


PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

But my path when I echo $PATH looks like this:


PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer"

Where is the RealPlayer set? I've looked in my .bashrc and there is nothing that references RealPlayer and I don't have a .bash_profile.

Thanks.

SuperSonic4
December 24th, 2009, 08:26 PM
I suspect Realplayer installed it. You could remove the directory if the files aren't important (simply move it if they are) and then try again

justanotherhandle
December 24th, 2009, 09:05 PM
Thanks. But where (when?) is the path being set? I only run RealPlayer at very specific instances and it's not running now ... at least it's not in the list of running processes. So how would (when) RealPlayer set a new path variable?

Thanks.

SuperSonic4
December 24th, 2009, 09:06 PM
I would guess that it did so during install. I've never installed realplayer so I can't be sure

justanotherhandle
December 24th, 2009, 10:13 PM
Per the ubuntugeek.com entry on directory structures (http://www.ubuntugeek.com/linux-or-ubuntu-directory-structure.html) ...


/etc/profile.d contains scripts that are run by /etc/profile upon login.

And in the /etc/profile.d/ directory there is the scripts that sets the RealAudio path.

Whee!