The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
full path of .profile in unix dba UNIX for Dummies Questions & Answers 6 02-22-2008 03:12 AM
Edited Path in Profile File thewetch UNIX for Dummies Questions & Answers 4 03-08-2006 04:01 AM
set variable to Home, then echo it to screen amidget UNIX for Dummies Questions & Answers 3 02-23-2006 07:23 PM
I need a path to install UNIX on my home PC chutt UNIX for Dummies Questions & Answers 6 02-06-2004 09:12 AM
Modifying $PATH variable in /etc/profile Deepali UNIX for Dummies Questions & Answers 3 03-12-2001 09:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
echo $PATH doesn't match $HOME/.profile

This is on a Solaris 9 box, but I feel like a noob, so I am posting here. When I echo $PATH I get a lot of duplicate paths and extra stuff I don't need. What I want is just what I set up in my home dir under .profile

My login shell=/bin/bash

I checked the following and there are no path statements id;
/etc/profile
/etc/default/login
$HOME/local.login
$HOME/local.cshrc
$HOME/local.profile
$HOME/.dtprofile

I do not have a $HOME/bash_profile

I am using gnome 2.0 as desktop

Where are these extra path statements coming from?
Reply With Quote
Forum Sponsor
  #2  
Old 04-17-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
When you log into X, your shell isn't started. So your .profile is not consulted at all at that point. Then when you start a terminal in Gnome, that doesn't count as a login shell either, so it might not be reading your .profile then either.

The whole X11 / gdm / Gnome login business is complex stuff so there's a lot of different places you could plug into (or mess up :-). You could put something in Gnome's Sessions preference to load up your profile when your session starts. (Preferences -> Sessions -> find out where they moved this functionality while you were not looking -- in my Gnome 2.20.1 you can add your own script in the Startup Programs tab.)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0