[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    [Kwin] use an environment variable to change kde's window manager at startup
From:       Ben Jansens <xor () orodu ! net>
Date:       2002-08-23 4:08:53
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Greetings,

I have here a patch to make choosing a window manager to run with kde
much more friendly. Instead of having to edit a script that is part of
the kde distribution, they can just set the KDEWM environment variable.

Ben Jansens
--=20
I am damn unsatisfied to be killed in this way.

["kdewm_envvar.diff" (text/plain)]

Index: startkde
===================================================================
RCS file: /home/kde/kdebase/startkde,v
retrieving revision 1.107
diff -p -u -3 -r1.107 startkde
--- startkde	1 Jul 2002 19:18:54 -0000	1.107
+++ startkde	23 Aug 2002 03:31:40 -0000
@@ -142,11 +142,12 @@ LD_BIND_NOW=true kdeinit +kcminit +knoti
   xmessage -geometry 500x100 "Couldn't start kdeinit. Check your installation."
 
 # finally, give the session control to the session manager
-# Syntax:   ksmserver [--windowmanager <wm>]
-# if no windowmanager is specified, ksmserver will ensure kwin is started.
-# [--restore] should be controlled by kdm
+# if the KDEWM environment variable has been set, then it will be used as KDE's
+# window manager instead of kwin.
+# if KDEWM is not set, ksmserver will ensure kwin is started.
 # kwrapper is used to reduce startup time and memory usage
-kwrapper ksmserver || \
+test "$KDEWM" != "" && KDEWM="--windowmanager $KDEWM"
+kwrapper ksmserver $KDEWM || \
   xmessage -geometry 500x100 "Couldn't start ksmserver. Check your installation."
 
 # Clean up

[Attachment #6 (application/pgp-signature)]
_______________________________________________
Kwin mailing list
Kwin@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic