LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help! Can't clear xwmconfig option! (http://www.linuxquestions.org/questions/linux-newbie-8/help-cant-clear-xwmconfig-option-19163/)

NightSky 04-22-2002 06:51 PM

Help! Can't clear xwmconfig option!
 
Dual Boot Slackware8/Windows98se

I setup 2 usr s to explore diff window managers and now the xwmconfig displays kde as the default WM and I can't get rid of the X next to it. I want to change it to Gnome! How can I clear the check off box? Thanxs

linuxcool 04-23-2002 09:57 PM

I have zipslack installed and I checked the xwmconfig program. It's a script file. I found this line in it that makes kde the default window manager when it sees the xinitrc.kde file.


if [ -r /etc/X11/xinit/xinitrc.kde ]; then
echo "\"xinitrc.kde\" \"KDE: K Desktop Environment\" \"on\" \\" >> $TMP/tmpscript.sh
fi

Edit the file and change the on to off. Like this:

if [ -r /etc/X11/xinit/xinitrc.kde ]; then
echo "\"xinitrc.kde\" \"KDE: K Desktop Environment\" \"off\" \\" >> $TMP/tmpscript.sh
fi

One more thing, there are some lines that follow this that make gnome the default if the xinitrc.kde file is missing. So, if you should happen to remove the xinitrc.kde file, gnome will become the default. Here are the lines:


if [ -r /etc/X11/xinit/xinitrc.gnome ]; then
if [ ! -r /etc/X11/xinit/xinitrc.kde ]; then
echo "\"xinitrc.gnome\" \"GNOME: GNU Network Object Model Environment\" \"on\" \\" >> $TMP/tmpscript.sh
else
echo "\"xinitrc.gnome\" \"GNOME: GNU Network Object Model Environment\" \"off\" \\" >> $TMP/tmpscript.sh
fi
fi

You can edit these lines if you want to prevent gnome from becomming the default if xinitrc.kde is removed. Just comment out four of the lines like this:

if [ -r /etc/X11/xinit/xinitrc.gnome ]; then
# if [ ! -r /etc/X11/xinit/xinitrc.kde ]; then
#echo "\"xinitrc.gnome\" \"GNOME: GNU Network Object Model Environment\" \"on\" \\" >> $TMP/tmpscript.sh
#else
echo "\"xinitrc.gnome\" \"GNOME: GNU Network Object Model Environment\" \"off\" \\" >> $TMP/tmpscript.sh
# fi
fi

I hope this works.

NightSky 04-30-2002 12:41 AM

linuxcool, thanks for your post. I was able to choose Gnome with it. The script allows me now to choose different window manager or desktops manually. The xwmconfig gui menu is still stuck though. I will keep playing with it to see if I can get it to work.
Thanks again Happy linuxing ;)

linuxcool 04-30-2002 03:05 AM

You're welcome. :)

You might want to check out the man page for the program dialog. It's the program that creates the dialog box on screen that lets you choose your window manager.


All times are GMT -5. The time now is 11:00 PM.