Re: customizing xinitrc, finding global xinitrc
Re: customizing xinitrc, finding global xinitrc
- Subject: Re: customizing xinitrc, finding global xinitrc
- From: email@hidden
- Date: Tue, 4 Mar 2008 12:34:14 -0700
Thanks, Harald. I have finally got it working via a combination of
these suggestions and previous postings. I did create a shell script
to launch these windows, but couldn't get it to launch from the finder
or dock. So I changed the default launch application to be the script
via :
defaults write org.x.X11 app_to_run /Users/path/xinit_launch.csh
and made sure the script had the full path of the xterm application:
188:~ $ cat xinit_launch.csh
#!/bin/sh
# $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $
# start some nice programs
/usr/X11/bin/xterm -sb -sl 10000 -geometry 75x50-0+0 -bg
darkolivegreen -fg khaki &
/usr/X11/bin/xterm -sb -sl 10000 -geometry 75x50+45+5 -bg
darkslateblue -fg ivory &
Thanks for your help!
Mike
On Mar 4, 2008, at 11:59 AM, Harald Hanche-Olsen wrote:
+ email@hidden:
There are 2 problems with this in Leopard. The first is that
executing X11 brings up its own white default xterm, which I would
like to eliminate. I have read some in the mailing list archives
about how to modify the plist to prevent this from happening, but
haven't tried any of the suggestions just yet.
Personally, I haven't bothered with this. I never ever start X11
manually anymore. I just fire up any X11 program, and then X11 starts
automatically.
The other problem, which I haven't seen addressed, is that X11 keeps
asking me if I would like to move aside my local .xinitrc file.
This is particularly bothersome when installing fink packages,
during which the window can pop up dozens of time consecutively.
Hmm. I remember seeing that once in the distant past, but haven't
seen it in ages. I don't remember what I did to fix it. Hmm...
Is the global xinitrc file squirreled away in a different location
now?
It's at /usr/X11/lib/X11/xinit/xinitrc
What is the best way to configure X11 to both eliminate the default
xterm and bring up my 2 custom xterms?
If it were me, I'd just write a script that starts up the two xterms.
If X11 isn't running when you start the script, it will be started
automatically. A benefit of this is that if you ever start up X11 for
any other reason than your two xterms, you won't get them.
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden