Adding a file to the path in etc/profile
Running Mandrake 9.1 on a newer custom system.
I just installed the newest winex CVS. I can only run wine by typing the path to wine and then the *.exe
Example:
wine install.exe Won't work
/usr/lib/cvswinex/bin/wine install.exe Does work.
I know that I have to add wine to the path, kind of like path=---/---/xx.exe in autoexec.bat from the DOS days.
I found that if I type PATH=$PATH:/usr/lib/cvswinex/bin/
wine will run from any directory so long as I don't close the terminal I ran the PATH statement in.
I think I need to edit /etc/profile, but I'm not sure quite how. I tried adding the PATH statement from above without any results.
Here's a copy of my etc/profile:
# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
loginsh=1
# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"
fi
if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi
umask 022
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N
export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
unset i
Any ideas?
|