LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2002, 06:51 PM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
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

Last edited by NightSky; 04-22-2002 at 06:52 PM.
 
Old 04-23-2002, 09:57 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.

Last edited by linuxcool; 04-23-2002 at 10:00 PM.
 
Old 04-30-2002, 12:41 AM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Wink

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
 
Old 04-30-2002, 03:05 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 05:02 PM
xwmconfig Entries!?? FreakboY Slackware 2 05-25-2005 09:10 AM
xwmconfig slinky2004 Linux - General 1 10-25-2004 02:27 AM
gnome and xwmconfig paul62 Slackware 1 09-20-2004 01:02 PM
editing xwmconfig Goatdemon Slackware 7 09-19-2002 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration