Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!voder!pyramid!leadsv!esl!esl.ESL.COM!jsd From: jsd@esl.ESL.COM (Jeff Dalton) Newsgroups: comp.sys.hp Subject: Re: Instant Ignition & xsession Message-ID: <325@esl.ESL.COM> Date: 10 Sep 90 19:11:50 GMT Sender: news@esl.ESL.COM Reply-To: jsd@bambam.UUCP (Jeff Dalton) Organization: ESL Inc., Sunnyvale, CA Lines: 27 > eric@hpfcda.HP.COM (Eric Flink) writes: > > For example, move /usr/bin/X11/X to /usr/bin/X11/X.real. Then recreate > /usr/bin/X11/X as a shell script which looks like: Assuming this works for starting X, shouldn't it work for starting xsession? And if so, then since xsession is passed the PID of user logging on then shouldn't I beable to make xsession into a script and load the user's environment (".kshrc" and ".profile" or whatever) and then exec xsession.real? I tried the following script and it didn't work. Should it have worked? #! /bin/ksh if [ $1 = "-userId" ] then Home=$(grep $2 /etc/passwd | cut -d: -f6) . $Home/.profile . $Home/.kshrc fi exec /usr/bin/X11/xsession.real $* -- Jeff Dalton, ESL Inc. Real programmers can write jsd@esl.com Fortran in any language.