Hi David:

I believe you're talking about PATH the environment variable. This 
simply tells OpenSolaris where to look for your applications. If you 
open a terminal you can see the location where the application is found 
using 'which':
> bleonard at opensolaris:~$ which wesnoth
> which: no wesnoth in 
> (/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin:/usr/mysql/bin:/usr/netbeans/bin:/opt/OSOL0chime/bin/:/export/home/bleonard/PerformanceTools/tools/bin:/usr/netbeans/javafx2/javafx-sdk1.0/bin:/export/home/bleonard/ec2-api-tools-1.3-30349/bin:/usr/local/apache-maven/apache-maven-2.1.0/bin:/opt/sfw/sbin)
In this case it's not found on my system anywhere in the path:

Blastwave installs its packages into the /opt/csw directory. In your 
home directory there's a file called .bashrc where you can update the 
path to include this directory. I've added the following to the bottom 
of my .bashrc:
> #
> # Blastwave
> #
> export PATH=$PATH:/opt/csw/bin
After I restart the terminal, which causes the .bashrc file to run, 
wesnoth is now found:
> bleonard at opensolaris:~$ which wesnoth
> /opt/csw/bin/wesnoth
To directly answer your question, it's up to the folks that package 
Wesnoth to include the gnome menu item with the package. Since they 
don't, it's up to you to set it up manually as you've been doing. 
Everything I've walked you through above allows you to more easily start 
wesnoth from the command line.

Hope that helps,
Brian

david wrote:
> Ok, this may seem like an amateur question but how do you set the Path.  I 
> keep seeing stuff about this but I don't know what it is exactly or how to 
> use it.  
>
> What I do know is that if I install software from Blastwave or SunFreeWare, I 
> don't have access to it from the normal gnome.  I have to create a menu item 
> for each thing I install.  I saw on blastwave's site that you can set Path to 
> csw so that you are using their gnome but I don't know if I want to go that 
> far.  
>
> So let's say I install Wesnoth from Blastwave.  I can and have created the 
> menu item so that I can do directly there but suppose I wanted to set Path to 
> show it.  With Path is there a way to have the normal OpenSolaris gnome but 
> include csw in a way that would make wesnoth show up in the menus?
>   

-- 
W. Brian Leonard
Technology Evangelist
408.404.6884
http://blogs.sun.com/observatory


Reply via email to