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

Re: window manager



On Thu, 21 Apr 2005, Jon Dowland wrote:

> It depends on how you log into X. If you use a display manager, you can most
> often select the window manager to use from that. I'm guessing you don't, in
> which case, put the path to the window manager in ~/.Xsession and start X via
> 'startx'.

The files used are:

~/.xsession for the display manager

~/.xinitrc when using startx

Those have been standard in X since the beginning.  Put the full path to 
the window manager as the last line in the file, and make sure you do not 
background it (&).  Any clients to start on login should be put before the 
window manager and should be backgrounded.  Use of .xsession will 
generally over-ride any display manager specific choices (at least using 
xdm and kdm).

Some people symlink .xsession and .xinitrc.  This is ok.

Here are parts of my .xsession (from a Woody box):

zen:~$cat .xsession
#!/bin/bash

#
# Config
#

# Set your window manager here
MANAGER=/usr/bin/fvwm2

#
# Main
#

# Reset X defaults.
xrdb ~/.Xdefaults

# xplanet
xplanet -wait 300 &

# Allow ssh-agent to kick off the window manager ($MANAGER)
ssh-agent bash -c "ssh-add < /dev/null && $MANAGER"

Rob

-- 
Robert Brockway B.Sc.
Senior Technical Consultant, OpenTrend Solutions Ltd.
Phone: +1-416-669-3073 Email: rbrockway@opentrend.net http://www.opentrend.net
OpenTrend Solutions: Reliable, secure solutions to real world problems.
Contributing Member of Software in the Public Interest (http://www.spi-inc.org)



Reply to: