Re: Vote for CTWM

From: Walter Truitt (wtruitt@sun1464.spd.dsccc.com)
Date: Thu Mar 05 1998 - 20:32:48 CET


>>>>> In <199803042039.PAA09791@xyzzy.datapult.com>
>>>>> Roger Gonzalez <rg@datapult.com> wrote:

RG> rm -f ~/.wmpostrun

RG> ctwm

RG> while (-x ~/.wmpostrun)
RG> mv -f ~/.wmpostrun ~/.wmpostrun.bak
RG> ~/.wmpostrun.bak
RG> end

I really like this, but I think that the .xinitrc or .xsession
is run using sh, and I can't seem to get this construct the way you
wrote it. First thing is sh doesn't know how to expand the '~'.

(I know that on linux it is just a link to bash.)

So in my .xinitrc I have modified your version to put this:

while [-f $HOME/.wmpostrun]
do
  mv -f $HOME/.wmpostrun $HOME/.wmpostrun.bak
  /bin/sh $HOME/.wmpostrun.bak
done

I also set HOME higher up in the file just in case it was not set
before. I really like this idea. I also tried downloading and
compileing the xsession someone mentioned and it doesn't seem to be
working on my Sun workstation. It compiled fine and I placed the
app-defaults file and then also copied most of them to my .Xdefaults
where it was read before the xsession was run, and I didn't get
anything before the X restarted. I don't know if it had to do with
the version of X I am running or what.

 -walter



This archive was generated by hypermail 2.1.2 : Sat Jun 22 2002 - 06:45:04 CEST