Re: Xterm not reading dotfiles
Re: Xterm not reading dotfiles
- Subject: Re: Xterm not reading dotfiles
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 16 Nov 2007 10:52:42 -0800
I could be wrong but I believe that the "real" issue being raised in
this thread is that there is an inconsistent behavior between how
Apple and X terminals.
When /Applications/Utilities/Terminal.app is started from the
Finder, the default action is to execute /usr/bin/login and ensures
that ~/.bash_profile is read and the environment changed accordingly
before opening the Terminal window.
When /Applications/Utilities/X11.app is started from the Finder, the
default action is to, simply, open an X window in the user's current
environment. The problem with this is that the environment is that
of the user's login to Mac OS X. The user is provided, in effect, a
bash environment that has not been initialized.
That is not true. X11.app opens it the same exact way as Applications-
>xterm. Francisco, do you get a white xterm when doing Applications-
>xterm?
Check out http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=blob;h=ca6255307abe05a631d7f1564c670bf53659592f;hb=xorg-server-1.2-apple;f=hw/darwin/launcher/bundle-main.c
That is all the code there is for /A/U/X11.app . It just does:
/usr/bin/login -fp <your login> /bin/sh -c xterm
It used to do
/usr/bin/login -fp <your login> xterm
but I had problems getting .Xresources that way and it also didn't
work if "xterm" was user-modified to have command line arguments.
Francisco, what happens if you do this at a terminal?
/usr/bin/login -fp <your login> /bin/sh -c xterm
If you have a ~/.xinitrc file defined that opens an X terminal with
your desired options and exec quartz-wm, you will get two X terminal
windows. The first displayed will be a default X terminal window
with the Mac OS X environment. The second will be an X terminal
configured with your options and an initialized bash environment.
Personally, I want X11.app to behave the same as Terminal.app. I
want it to initialize the environment. X11.app should have a
Preferences panel that is, essentially, identical to that of
Terminal.app.
I am hearing this alot, and I think I'm going to take a stab at
writing a new X11.app to combine/replace /u/X/X11.app and /A/U/X11.app
which takes into account many concerns I've been hearing. Please feel
free to add your comments to http://www.x.org/XDarwin_TODO
--Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden