Anyone have a sample .Xclients-default file? (default window manager)

smp

Diamond Member
Dec 6, 2000
5,215
0
76
Er .. I just installed rh 7.3
Last time I had this, I had a
/home/myself/.Xclients-default file which I edited so that I could startx into blackbox
Now I don't have one and don't know how to write one.
Anyone got one?
Or is there another way to change default window manager?
Thanks.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
The old-school method was to use xinitrc - RedHat, as usual, changes that into a mass of connected shell scripts. Unless you're doing some pretty low-level X configuration, you'd probably be fine by creating a file called .xinitrc in your home directory:

#!/bin/sh
# .xinitrc - X startup configuration

exec /usr/bin/blackbox

# end of .xinitrc

That's assuming that blackbox lives in /usr/bin - you'll want to check that. I think that should be enough, but it's possible that RH configured X to prevent things from being simple.
 

Bremen

Senior member
Mar 22, 2001
658
0
0
better would be to call the RH script to start Blackbox (wherever that may live). Also copy the default xinitrc into your home dir so you don't lose any important startup config stuff
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I believe that the RH way of doing things is to use switchdesk, which hopefully was properly configured by the Blackbox RPM. There's no need to copy xinitrc in that case, because the system xinitrc will set it's defaults before sourcing in the .X-client stuff set by switchdesk.

I'd be willing to bet that my 4 line file will work just as well, though.
 

Need4Speed

Diamond Member
Dec 27, 1999
5,383
0
0
the problem with xinirc is that its not called when using runlevel 5. xinitrc is called from 'startx'. However, the format of xclietns is the same as xinitrc.

IMHO, the best way to starts black box is to add it to the gdm,xdm, or kdm login manager panel and then have it set as default from there.