PATH in xterm

Bryan Blackburn 0x62_0x6c_0x62 at pobox.com
Tue May 22 16:28:14 PDT 2007


On May 22, 2007, at 4:30 PM, markd at macports.org wrote:

> Ryan,
>
> I use this at the top of my /etc/X11/xinit/xinitrc:
>
> source ~/.profile
>
> In fact, that was on the InstallingMacPorts page and I erroneoudly  
> removed
> it when I added the stuff about xterm.  I put it pack and it should  
> all
> work now.
>
> http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
>
> There may be a better way to do it but that's what I arrived at  
> through
> tips from other people.
>

For many years, I've had (among other things)

XTerm*loginShell: true

in my ~/.Xdefaults file.  This makes sure xterm runs the shell as a  
login shell regardless of how it is launched.  If you use this, be  
sure to restart X prior to testing it.

Bryan


> Mark
>
> Ryan Schmidt <ryandesign at macports.org> on Tuesday, May 22, 2007 at  
> 3:04 PM
> -0800 wrote:
>> So I finally decided to figure out why I couldn't just type
>> "port" (etc.) in an X11 window. I found the section in the
>> installation guide:
>>
>> http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
>>
>>> To launch X11 apps directly from an X11 window (instead of a
>>> terminal window), you need to have the MacPorts paths imported into
>>> X11 sessions when they are opened. To do this:
>>>
>>>    1. Open X11 and select "Customize Menu ..." from the
>>> Applications menu.
>>>    2. Double-click the menu item "Terminal" and change: xterm to
>>> xterm -ls
>>>    3. Click "Done" to save the change.
>>
>> This works great in that I can select "Terminal" from X11's
>> "Applications" menu and it opens a new xterm which knows my PATH and
>> I can type "port" and so forth and it knows where it is.
>>
>> However, when X11.app first opens, it automatically opens an xterm
>> for me, and that xterm still doesn't know my PATH. How do I teach it?
>




More information about the macports-users mailing list