On Monday 11 February 2002 16:35, you wrote:
> justin bengtson wrote:
> > 4. "startx" starts up the X server and then quits to the console.
> > "xinit" starts up the X server and displays a "login" xterm. i can
> > start blackbox from the xterm, but if i close the xterm, the server
> > dies. i have a feeling this is all tied into the xinitrc, but i'm
> > not sure. any insights?
>
> Let me try to answer this one again.
>
> If you put this into ~/.xinitrc:
>
> #!/bin/sh
> xterm &
> xclock &
> xlogo &
> twm
Uhh... or how about this in your .xinintrc
#!/bin/sh
xosview & # (or gkrellm if you have it)
xdaliclock -root -cycle
xterm &
Eterm & # (one term is never enough.... Eterm rocks..)
#xclock & #Bleh...
#xlogo & #Bleh...
panel & #You like a panel?
blackbox
Ive been using blackbox with OBSD... its ok... windowmaker is nicer, black
box is pretty efficient though.
>
> Then xinit will start an xterm, an xclock, an xlogo, and a twm window
> manager. You can kill the visible clients at any time, but the X
> session won't be over until you kill twm.
>
> Generally, the window manager is the right client to wait on.
>
> Another way to write same, so that twm is running before the other
> clients, is this.
>
> #!/bin/sh
> twm & # put twm in background
> sleep 2 # plenty of time for twm to start
> (xterm &) # start in subshell so we can't wait on it
> (xclock &) # ditto
> (xlogo &) # ditto ditto
> wait # wait for twm to exit
>
> Is that what you wanted to know?