SuSE GmbH

SuSE Support Database

Title: tcsh and WINDOWMANAGER

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

tcsh and WINDOWMANAGER

Applies to

SuSE Linux: Version 6.0

Symptom:

When loggin in as a tcsh user, you get the following error message:

WINDOWMANAGER: Undefined variable.

Reason:

The tcsh does not like undefined variables. SuSEconfig must check if the status if the ${?VARIABLE} is "defined" or "undefined".

Solution:

Patch SuSEconfig as follows with the command "patch":


--- tmp/SuSEconfig	Mon Jan 11 17:56:21 1999
+++ /sbin/SuSEconfig	Thu Dec 17 10:43:52 1998
@@ -485,7 +485,7 @@
 test -z "$WINDOWMANAGER" && WINDOWMANAGER=/usr/X11R6/bin/kde
 echo "test -z \"\$WINDOWMANAGER\" && WINDOWMANAGER=$WINDOWMANAGER" >> $r/etc/SuSEconfig/profile.SuSEconfig
 echo "export WINDOWMANAGER" >> $r/etc/SuSEconfig/profile.SuSEconfig
-echo "test -z \"\$WINDOWMANAGER\" && setenv WINDOWMANAGER $WINDOWMANAGER" >> $r/etc/SuSEconfig/csh.cshrc.SuSEconfig
+echo "if ( ! \${?WINDOWMANAGER} ) setenv WINDOWMANAGER $WINDOWMANAGER" >> $r/etc/SuSEconfig/csh.cshrc.SuSEconfig
 
 
 check_md5_and_move $r/etc/SuSEconfig/profile

If you do not want to use the patch, you could modify the following line in the file /sbin/SuSEconfig with your favorite editor:

echo "test -z \"\$WINDOWMANAGER\" && setenv WINDOWMANAGER $WINDOWMANAGER" >> $r/etc/SuSEconfig/csh.cshrc.SuSEconfig

to read

echo "if ( ! \${?WINDOWMANAGER} ) setenv WINDOWMANAGER $WINDOWMANAGER" >> $r/etc/SuSEconfig/csh.cshrc.SuSEconfig

An alternative would be to update the complete package "aaa_base" from ftp://ftp.suse.com/pub/SuSE-Linux/6.0/suse/a1/aaa_base.rpm; with YaST or manually (see. pakete_manuell.html).

----------

See also:

----------

Keywords: TCSH, WINDOWMANAGER, SUSECONFIG, 6.0

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-ke_tcsh-wm, Copyright SuSE GmbH, Nuremberg, Germany - Version: 15. Jan 1999
SuSE GmbH - Last generated: 07. Oct 1999 16:50:38 by maddin with sdb_gen 1.00.0