OESF Portables Forum

General Forums => General Discussion => Topic started by: prun769 on January 08, 2004, 10:33:34 pm

Title: problem with .profile
Post by: prun769 on January 08, 2004, 10:33:34 pm
I am having a problem getting my changes to my .profile to work.  I am trying to add an environment variable to my .profile (in /home/root), but my changes are never reflected when a I re-run terminal (even after a reboot).

I have an SL 5500 with v. 2.38 of the Sharp ROM.

Regards
Title: problem with .profile
Post by: soycap on January 08, 2004, 11:55:37 pm
Post the code for the entire file and let us know which lines you added or changed.  We can start there.

I run OZ and was able to edit the system wide profile \"/etc/profile\", I didn\'t try it with user profiles.
Title: problem with .profile
Post by: prun769 on January 09, 2004, 12:34:52 am
I apologize, it\'s been a couple of years since I have a touched a unix-style OS.  Where is the system-wide .profile stored on the Sharp ROM?  That could solve my problem just as well.  The variable I am trying to add is CLASSPATH for compiling Java source.

Here is my .profile from /home/root:

# %ENV;

HISTFILE=/home/root/.bash_history
HOME=/home/root
QTDIR=/home/QtPalmtop
QPEDIR=/home/QtPalmtop
PATH=/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:$QPEDIR/bin
LD_LIBRARY_PATH=$QTDIR/lib
PS1=\"# \"
OPERA_DIR=$QPEDIR/opera
CLASSPATH=/usr/local/java/rt.jar

export HISTFILE HOME QTDIR QPEDIR PATH LD_LIBRARY_PATH PS1
export OPERA_DIR CLASSPATH

Regards,
Title: problem with .profile
Post by: lardman on January 09, 2004, 10:05:54 am
You could try sticking your changes in ~/.bashrc and see whether that works.

Otherwise /opt/QtPalmtop/qpe.sh always used to work for altering the PATH & LD_LIBRARY_PATH vars.

Si
Title: problem with .profile
Post by: prun769 on January 09, 2004, 08:35:57 pm
Thanks for the help - the ~/.bashrc worked great.