Re: last question
On Sun, 31 Mar 1996, T. Moore wrote:
> I really appreciate all the help people have given on this group, it has
> been very prompt and pertinent! I almost have everything running great
> on my debian machine, but have one last problem. In X, for some strange
> reason, if I try to put a .xsession file in my home dir as root or another user,and run startx, it always just bombs out back to the prompt. I have
> made the .xsession file +x, and it just contains one line "xterm &". I
> even renamed it to .xinitrc, and .xinit, but to no avail. Anyone have
> any idea why it wont read my .xsession? Thanks!
>
>
>
> Tom F. Moore, III http://www.acs.appstate.edu/~tm11369
> ----------------------------------------------------------------------------
> - Simple, short and sweet sig file...
# pared down .xsession
--------------
fvwm &
# I always sleep so that fvwm can finish loading.
# this lets it prevent 'xload' from overlapping xclock, etc.
sleep 2
xload &
xclock &
xpmroot bkg.xpm
xosview &
sleep 2
# in the real thing, I used 10 options to rxvt -ls means login shell
exec rxvt -ls
--------------
The '.xsession' file governs the whole X session. When it ends, your login
does too. You need to run a 'magic' application with 'exec'. When you quit
that application, the X11 session dies. I use an rxvt prompt (xterm works
too of course). Another logical choice would be the window manager, but I
like to switch wm's sometimes. You could use 'netscape' if you had a screw
loose. I'm not sure 'exec' is needed, as long as the script never
completes, but I think if you don't use exec, you 1) lose resources to a
process which processes the script, and 2) can put 'cleanup' commands after
the script. This is all documented I think (scattered across many files).
Of course, just about _anything_ could be done with .xsession. It is an
amazingly flexible way to set up the system.
__kmb203@psu.edu_____________________________Debian/GNU__Linux__1.3.77___
"The C Programming Language -- A language which combines the
flexibility of assembly language with the power of assembly language."
Reply to: