[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ksh and X windows.



On Sat, May 13, 2006 at 01:53:36PM -0400, Peter Fraser wrote:
> My apologies, for not noticing that faq entry. But is
> is not a solution in general.
> 
> I had a menu entry for "emacs", The effect I got
> was the shell inside emacs didn't have ENV set,
> and by that time ksh is not going to look at 
> .profile. I tried to come up with a simple
> example of the problem.
> 
> Why doesn't Xsession just do a ". ~/.profile" 
> before calling /usr/X11R6/bin/fvwm ?

Because .profile might do stuff that does not, at all, make sense in a
context that is not a text-only shell. (E.g. my .profile exec's
misc/screen under the right conditions; I presume this would sort of
work, but not produce a result that is desired, foreseen, or even
sensible[1].)

If that's what you want, how about just adding that line to ~/.xinitrc?
It's not hard, but you do get to keep the pieces.

		Joachim

[1] This being UNIX, though, it will do exactly what you told it to do.



Visit your host, monkey.org