Re: Dang .xinitrc
Re: Dang .xinitrc
- Subject: Re: Dang .xinitrc
- From: "Joseph R. Kiniry" <email@hidden>
- Date: Sun, 19 Jan 2003 11:40:11 +0100
--On zaterdag, 18 januari 2003 22:01 -0800
email@hidden wrote:
...snip...
Message: 11
Date: Sat, 18 Jan 2003 23:45:05 -0600
From: Alden Stradling <email@hidden>
To: email@hidden
Subject: Dang .xinitrc
Well, I upgraded to Jaguar, and my PATH has lost all reference to
/sw/bin and all that. I have tried and tried to set up .xinitrc in my
home directory (and modified any other one I can find anywhere) but
nothing does the trick. If it matters, I was on XDarwin and Orboro with
10.1, and I deleted them after I got Apple's X11. Any ideas what I can do?
Tanks,
Alden
Hello Alden,
First, make sure that you are adding all the appropriate path elements,
especially /sw/bin, in your shell startup script. If you are using csh or
tcsh, don't forget that .login is run *once* at login, but .cshrc and
.tcshrc (resp.) are run during every new shell invocation. If you are
using bash, the two corresponding files are .bash_profile and .bashrc.
Most folks forget about the former, esp. in the case of bash. Personally,
I write my shell startup scripts so that they work in all circumstances, on
all operating systems, then just link .bash_profile to .bashrc.
Second, .xinitrc needs to have mode 755 for many versions of X. It really
depends upon which set of startup scripts (e.g., startx, xinit, Xsession,
use of XDM, etc.) were chosen for a given install. Also, some X setups
(esp. older ones) use .xsession instead of, or in addition to, .xinitrc.
For uniformity, I always link one to the other.
Finally, unless you are using a program like SSH Agent, I always suggest
starting X with one of the provided scripts (e.g., startx) so that all env
variables, X resource database (xrdb) environment, X keymaps (xmodmap),
etc. are configured properly for the entire session. Don't forget that
startx and the rest of the X infrastructure up to, but not including, the X
server are just shell scripts. Reading them is quite rewarding in
understanding how a given X installation hangs together.
I hope these hints might help you out.
Good luck,
Joe
---
Joseph R. Kiniry http://www.kindsoftware.com/
KindSoftware, LLC ID 78860581 ICQ 4344804
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.