LinuxQuestions.org
Help answer threads with 0 replies.
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 11-15-2004, 10:58 PM   #1
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Rep: Reputation: 15
enlightenment took over my comp


ive been messing around with wm and found one i enjoy...enlightenment. Well until today when i realised i cant get into kde anymore. when i close enlight. it brings up kdm and no matter what wm manager i choose from there it takes me back to enlightenment. i cant use flux/kde or any other wm. I can use them with different user tho. any ideas? oh yeah: SuSE 9.1
 
Old 11-16-2004, 01:33 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 857

Rep: Reputation: 110Reputation: 110
I'm a Slackware user, so I'm kind-of shooting in the dark but I'll try to help.

Open a command prompt and go to /home/yourname. There should be a file there called .xinitrc. Open it in a text editor and look down at the bottom of the file for something like "#start the window manager". The very next line should be the full path to your favored window manager's executable file. The syntax is "exec /path/filename". Here's my xinitrc file for icewm:


Code:
#!/bin/bash

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# Merge in system resources and keymaps  :

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

# Merge in user resources and keymaps :

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Install default IceWM files if they do not exists :

if [ ! -d $HOME/.icewm ]; then
    mkdir $HOME/.icewm
fi

for file in keys menu preferences toolbar winoptions
do
    if [ ! -f $HOME/.icewm/$file ]; then
        cat /usr/share/icewm/$file > $HOME/.icewm/$file
    fi
done

# Start IceWM components :
# - icewmbg   : handle desktop backgrounds
# - icewmtray : handle notification icons (gaim, psi, ...)
# - icewm     : the IceWM window manager

/usr/bin/icewmbg &
/usr/bin/icewmtray &
exec /usr/bin/icewm

exec xscreensaver &
I hope this helps.

Have a good one.

--Dane
 
Old 11-16-2004, 01:46 AM   #3
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Original Poster
Rep: Reputation: 15
thanks a bunch. havent tried switching back to kde yet but pretty sure its fixed. the only thing in the.xinitrc file was #! /bin/bash exec /.../enlightenment. luckly there was a .xinitrc.template (probably a suse thing). thanks again for leading me to the right place.
 
Old 11-16-2004, 06:55 AM   #4
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 857

Rep: Reputation: 110Reputation: 110
Good; I hope that works out well for you. Glad to be of assistance.

--Dane
 
Old 11-16-2004, 10:33 PM   #5
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Original Poster
Rep: Reputation: 15
some bad news. it didnt work. the template .xinitrc had a if elif series in it that sets $WINDOWMANAGER. i tried change the last line form exec $WINDOWMANAGER to exec /pathtokde/startkde and still no kde. looking at the ~/.xsession file all there is is:
# Enlightenment inserted Execution string here
exec /usr/X11R6/bin/enlightenment

i dont know what that file is but that looks weird to me. dang i was hoping it was fixed.
 
Old 11-16-2004, 10:51 PM   #6
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Original Poster
Rep: Reputation: 15
yay. im in kde. changing the exec ...enlighenment to ...kde work but now i have to change it everytime i want to switch. anyone have a good example of a ~/.xsession ?
 
Old 11-19-2004, 01:35 AM   #7
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 857

Rep: Reputation: 110Reputation: 110
Hi, Tardigrade.

It looks like some auto-magic configuration gizmo has decided that your window manager is "supposed" to be windowmaker and is inserting the command to start it into your .xinitrc file. Here's what you can do to find out which file is causing the problems:

1) read the man pages on "grep". (yes, I know this is a cop out on my part but there's really no substitute for reading tfm)
2) starting in "/", grep recursively for the phrases: "# Enlightenment inserted Execution string here" and "exec /usr/X11R6/bin/enlightenment".
3) remove or comment out (put a "#" at the beginning of the line) all mentions of those phrases.
4) cross your fingers and reboot

Hopefully this will save you some fingerwork in the future. Anybody more Suse-friendly have any suggestions?

--Dane
 
Old 12-02-2004, 09:31 PM   #8
tardigrade
Member
 
Registered: Jun 2004
Distribution: SuSE 9.1
Posts: 150

Original Poster
Rep: Reputation: 15
searching for those lines worked. thanks a bunch.
 
  


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
old comp da_boss Linux - Newbie 5 03-13-2005 04:42 AM
how to do: using a linux comp to act as router for a windows comp grimhammer Linux - Networking 8 02-10-2005 09:56 PM
New comp v's old comp SirLaughAlot General 12 12-21-2003 11:39 AM
couldn't ping a WinXp comp from Fedora Comp tanbetien Fedora 5 12-04-2003 06:03 AM
What's best for old comp.? Enil8 Linux - Newbie 17 07-16-2003 11:59 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration