View previous topic :: View next topic |
Author |
Message |
bröggle Guru
Joined: 11 Oct 2004 Posts: 356
|
Posted: Mon Nov 29, 2004 4:47 pm Post subject: How to add a windowmanager to kdm/gdm? |
|
|
Hi,
today I emerged gnome, returned to kdm and tried to log in.
"gnome is no valid session"
then I emerged fluxbox just to give it a try.
->"fluxbox is no valid session"
consequently I tried it the other way round and used gdm
->gnome works
->fluxbox /kde 'is no valid session'
-->Where's the problem? _________________ where is the n00b section? |
|
Back to top |
|
|
phoenixreborn n00b
Joined: 19 Jan 2004 Posts: 48 Location: Salt Lake City, UT, USA
|
Posted: Wed Dec 01, 2004 10:56 pm Post subject: |
|
|
Have you checked your /etc/X11/Sessions directory? It should contain scripts for loading up the different desktop environments. |
|
Back to top |
|
|
bröggle Guru
Joined: 11 Oct 2004 Posts: 356
|
Posted: Wed Dec 01, 2004 11:27 pm Post subject: |
|
|
Code: |
ls /etc/X11/Sessions/
Gnome Xsession fluxbox kde-3.3.0 kde-3.3.
|
->hmm ? _________________ where is the n00b section? |
|
Back to top |
|
|
bröggle Guru
Joined: 11 Oct 2004 Posts: 356
|
Posted: Wed Dec 29, 2004 8:50 pm Post subject: |
|
|
sorry for the "double-posting" but I want to add something that might help...
(and remind you of the thread
If I shut down kdm etc. and try to start "startx" (with a .xsession file in my ~ ,that contains /usr/bin/fluxbox) it starts KDE...
does this hint at the problem?
What should I do? _________________ where is the n00b section? |
|
Back to top |
|
|
phoenixreborn n00b
Joined: 19 Jan 2004 Posts: 48 Location: Salt Lake City, UT, USA
|
Posted: Thu Dec 30, 2004 2:45 am Post subject: |
|
|
Quote: | If I shut down kdm etc. and try to start "startx" (with a .xsession file in my ~ ,that contains /usr/bin/fluxbox) it starts KDE.. |
I'm not sure if it hints at the problem or not. When you run startx the script will call /etc/X11/xinit/xinitrc to help determine the window manager. xinitrc will call /etc/X11/chooser.sh to determine which xsession (window manager) to use and which ones are available.
The main global configuration files that are looked at to determine which window manager to use are the /etc/rc.conf and /etc/conf.d/basic.
When the ~/.xsession file is not present, what is the xsession variable set to in the two global configuration files? |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Thu Dec 30, 2004 5:38 am Post subject: |
|
|
To start fluxbox or XFCE4 or whatever with startx, I just edit my ~/.xinitrc to read
Quote: | exec fluxbox
# or
exec startxfce4
|
or whatever command starts your window manager. Can't you just do the same thing in ~/.xsession? Also, at the very bottom of /etc/rc.conf, there is a variable called XSESSION. If you set this to kde-3.3.1, for instance, it should start KDE when logging in using kdm or when using startx. I think that the only reason you would create a ~/.xinitrc or a ~/.xsession file is if a user wants a configuration differing from the global default. |
|
Back to top |
|
|
bröggle Guru
Joined: 11 Oct 2004 Posts: 356
|
Posted: Thu Dec 30, 2004 12:48 pm Post subject: |
|
|
ok now fluxbox works with a .xinitrc file... but kdm still doesn't support it...
on my machine there is no "/etc/init.d/basic/"
Code: | tail /etc/rc.conf
# 2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
XSESSION="kde-3.3.1"
|
--> kde is set, and kde _does_ work using kdm, but all the other wm _don't_ work.(using kdm)
How do I fix it? _________________ where is the n00b section? |
|
Back to top |
|
|
|