[prev] [thread] [next] [lurker] [Date index for 2006/08/25]
On 25. aug. 2006, at 15:22, Nicholas Clark wrote: > Something isn't honouring my profile... > > My profile sets HISTSIZE to something non-default so that more bash > history > gets saved. Login shells are happy. Children spawned from login shells > are > happy - they inherit the environment, as it should be. > > It turns out to be the OS X X server. Its default is to spawn an xterm. > It's doing this from a clean environment (ie it's not run my profile) > but > it doesn't run the xterm with -ls to make it a login shell. So nothing > is > running my profile. > > Mmm. I don't have an .xsession here, I don't really feel like creating > one > just for this, so as it's "my" laptop I investigate what the system > default > is. It seems to be /private/etc/X11/xdm/Xsession > And lo, that file has a bare unadorned "xterm". > So I change it to "xterm -ls". > Does this work? > > Hell no. > > The bastard X server isn't using that, and is (or at least as far as > all > the documentation and preferences goes) hard coded to start xterm. Not excusing the X server. It deserves a lot of hate, but this time it is actually not at fault. Unless you're doing something fairly unusual on your mac, you're not running xdm, so /private/etc/X11/xdm/Xsession has nothing to do with your x-session. /private/etc/X11/xinit/xinitrc (or ~/.xinitrc) on the other hand does. Fix either one to get back to hating bash, HISTSIZE or whatever. Not to mention xterm. Ole-Morten Duesund -- Always try to do things in chronological order; it's less confusing that way.
Generated at 03:01 on 31 Aug 2006 by mariachi 0.52