Set Path for Run Command
Tim Johnson
tim at johnsons-web.com
Sat Jun 9 00:03:21 BST 2007
On Friday 08 June 2007, Aivars Šterns wrote:
> You need to add this path to PATH, you can change that in you
> /etc/profile file, by modifying it...
> the line you should edit is:
>
> if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
>
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPA
>TH}" else
> PATH="/usr/local/bin:/usr/bin:/bin:${PATH}" <-- this one
> fi
>
> change line to this:
> PATH="*/home/bin:*/usr/local/bin:/usr/bin:/bin:${PATH}"
>
Hi:
Thanks, but I should have said that I am using kubuntu 7.04
I put the following in my ~/.bash_profile:
PATH=/home/bin:$PATH
export PATH
## I had previous put this in my ~/.bash_rc
Now when I open the dialogue, I get no error
message, but the script doesn't execute.
## Here's my path
echo $PATH
/home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
## script works fine when I run it from the bash command line
## /etc/profile is as follows:
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
##
regards
Tim
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list