On Sat, 2003-12-06 at 16:24, Mike Williams wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 06 December 2003 14:44, SMS WebMaster wrote:
>
> > > It should be trivial to check what kernel is running to decide what WM to
> > > use. How do you start X, and your WM?
> > > startx runs .xinitrc as a shell script IIRC, and {k,g,x]dm run sessions
> > > from /etc/X11/Sessions
>
> > Thank you Williams , I know I must check the kernel (uname -r) and then
> > run WM
> >
> > but how can I do that in Gentoo (because Gentoo use /etc/rc.conf ) ?
> >
> > can I do shell script in the file /etc/rc.conf ?
>
> Gentoo only uses /etc/rc.conf to decide what display manager to start
> ({k,g,x}dm).
> You then tell it what WM to run.
nah, it also tells what window manager to use, as default (it overrides
these changes if you change in ~/.xinitrc or ~/.xsession)
so just place the script there, where XSESSION= is:
if ['/sbin/uname -r' = "2.4.23" ]
then
export XSESSION="XFce4"
fi
else
if['/sbin/uname -r' = "2.6.0-test11"]
then
export XSESSION="WindowMaker"
fi
correct me if my script is wrong, this is my first shell script :)
>
> - --
> Mike Williams
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQE/0fS0InuLMrk7bIwRAp6cAJ9ZCcNGR5iwAbpXSyIwnTkNKS6jzACfSyO+
> Bj5QWn1WTolYZ0RV4tJs1lw=
> =NM+c
> -----END PGP SIGNATURE-----
>
> --
> [EMAIL PROTECTED] mailing list
--
Regards, Redeeman
() ascii ribbon campaign - against html e-mail
/\ - against microsoft attachments
--
[EMAIL PROTECTED] mailing list