LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   enlightenment took over my comp (https://www.linuxquestions.org/questions/linux-newbie-8/enlightenment-took-over-my-comp-255377/)

tardigrade 11-15-2004 10:58 PM

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

DaneM 11-16-2004 01:33 AM

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

tardigrade 11-16-2004 01:46 AM

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.

DaneM 11-16-2004 06:55 AM

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

--Dane

tardigrade 11-16-2004 10:33 PM

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.

tardigrade 11-16-2004 10:51 PM

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 ?

DaneM 11-19-2004 01:35 AM

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

tardigrade 12-02-2004 09:31 PM

searching for those lines worked. thanks a bunch.


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