 |
 |
Setting path in kde?
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
I like to run several bioinformatics apps using kde. I've installed kde and the majority of these packages using fink and they work just fine. I have one additional package that I had to install by hand because it is not in fink yet and I can't seem to figure out how to get it on the PATH for use in kde. I tried setting it in .profile in my home directory and this worked fine if I just run it from Terminal (using bash obviously), but it doesn't do anything when I try to access the app from within kde either from xterm or running another app which calls it (my prefered method of running it). The refering app keeps telling me to put it on my PATH.
In kde xterm:
$ echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/kurtmarek:/usr/X11R6/bin
In Terminal:
$ echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/biotools/bin
/usr/local/biotools/bin is the location of the app I am trying to run. I have set this in .profile to get it to work from the Terminal.
Thanks,
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
You can add to the $APTH env variable for xterm, kde, gnome by adding the needed path in your .xinitrc file. If you're using 10.3 and bash like this.
Code:
export PATH = $PATH:/usr/local/biotools/bin
Add after the line that sources /sw/bin/init.sh, which is where your current X11 path is being defined.
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
Originally posted by suthercd:
You can add to the $APTH env variable for xterm, kde, gnome by adding the needed path in your .xinitrc file. If you're using 10.3 and bash like this.
Code:
export PATH = $PATH:/usr/local/biotools/bin
Add after the line that sources /sw/bin/init.sh, which is where your current X11 path is being defined.
Craig
Hmmm...That didn't seem to work, but I don't have the /sw/bin/init.sh line in my .xinitrc file:
$ more .xinitrc
export KDEWM=quartz-wm
/sw/bin/startkde >/tmp/kde.log 2>&1
export PATH = $PATH:/usr/local/biotools/bin
$ echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/kurtmarek:/usr/X11R6/bin
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
The fink FAQ and setup info has extensive info about this topic. You can find your setup in the descriptions provided there and follow the directions provided.
I had moved my sourcing info to .xinitrc from .profile when fink updated after Panther was released. The fink default setup after Panther prepended the fink path info (/sw/bin etc) to the existing PATH and I do not want fink path's searched first for all executables, so I moved the sourcing to .xinitrc. Did not intend to send you down the wrong .....err path (groan).
The path code from my earlier post could be added to your .profile.
C-
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status:
Offline
|
|
This is really starting to frustrate me. The Terminal gets its path info from .profile as I can put 'echo 'profile'' and get that printed to stdout when starting Terminal. When I launch X11 (kde dekstop) and open xterm, nothing prints out. I then appended 'echo 'xinitrc'' to .xinitrc to see if that is where x11, kde, etc is getting the path info. Nope, when I open an xterm window nothing prints out.
I know Terminal gets its info from .profile, but I have no idea where kde, x11 is getting its info. I tried looking at the Fink FAQs and they basically say that the info should be in .profile. They list some other options, but they seem mainly for csh and I don't have any of those .files (.tcshrc, etc). Here are all the .files in my ~ directory:
$ ls -a
.
..
.CFUserTextEncoding
.DS_Store
.ICEauthority
.Trash
.Xauthority
.bash_history
.bitpim-files
.config
.cvspass
.emboss_error.txt
.fonts.cache-1
.gimp-2.0
.java
.kde
.kderc
.local
.lpoptions
.mcop
.mcoprc
.mplayer
.ncbirc
.nedit
.profile
.profile.save
.qt
.ssh
.thumbnails
.viminfo
.xinitrc
Any ideas which of these is being used when I launch x11, kde? Is there any way to find out?
Thanks,
kman
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
.xinitrc The file has a period as the first char.
.Xauthority is also x11 specific. .kde s/b a directory with kde specific user files. .kderc will have kde desktop appearance info.
Goolge bash, xinitrc, kderc, etc. to find some resources for basic info.
C
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|