-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ralph Cramden wrote:
> If I just type in say 'wireshark' from the terminal in gnome or any
> window manager it will say 'bash: wireshark: command not found'.
> This happens when trying to launch any app. Now if I type in the full
> path to the app ie. '/sw/bin/wireshark' it will launch.
> Is this a problem with my path? If so how do i fix it? I am running
> gnome from my /private/etc/X11/xinit/xinitrc, because when I try to run
> anything from my .xinitrc file in my home folder X11 crashes. So I
> edited the bottom line in the /private/etc/X11/xinit/xinitrc to get any
> window manager to work.
> 
> 

You shouldn't have needed to modify private/etc/X11/xinit/xinitrc (from
which I deduce that you're on 10.5).

Apple's X11 ignores your personal path settings, at least for the
current versions (I believe the newest version of Xquartz doesn't do
this).

1)  You need to make sure your personal .xinitrc file starts with

        source /sw/bin/init.sh

or

        . /sw/bin/init.sh

If you do that then the window manager should launch.  If not, then
there may be something else wrong with it, like a stray character from
using a non-Unix-line-ending-friendly text editor.

2)  X11 terminals don't inherit this, though.  On 10.5 you should be
able to launch X11 apps from Terminal.app (if that doesn't work you have
a more fundamental PATH issue) because that reads your login
information.  To get the same behavior in an X11 terminal, you can just run

        source /sw/bin/init.sh

manually (assuming you're using bash as your shell); or you can use

        bash -l

(again, assuming bash) to run a login shell, or you can use the options
for the terminal you want to run to make it a login shell, e.g. "xterm -ls".

- --
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqExdgACgkQB8UpO3rKjQ/BygCfYrereGGmb0cDJJ9I0mwypOnw
o9QAnRE0gDwBUVh5NagAM04dTC8GtOQ5
=eU2F
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to