Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to add a windowmanager to kdm/gdm?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Mon Nov 29, 2004 4:47 pm    Post subject: How to add a windowmanager to kdm/gdm? Reply with quote

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
View user's profile Send private message
phoenixreborn
n00b
n00b


Joined: 19 Jan 2004
Posts: 48
Location: Salt Lake City, UT, USA

PostPosted: Wed Dec 01, 2004 10:56 pm    Post subject: Reply with quote

Have you checked your /etc/X11/Sessions directory? It should contain scripts for loading up the different desktop environments.
Back to top
View user's profile Send private message
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Wed Dec 01, 2004 11:27 pm    Post subject: Reply with quote

Code:

ls /etc/X11/Sessions/
Gnome  Xsession  fluxbox  kde-3.3.0  kde-3.3.


->hmm ?
_________________
where is the n00b section?
Back to top
View user's profile Send private message
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Wed Dec 29, 2004 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
phoenixreborn
n00b
n00b


Joined: 19 Jan 2004
Posts: 48
Location: Salt Lake City, UT, USA

PostPosted: Thu Dec 30, 2004 2:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Thu Dec 30, 2004 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Thu Dec 30, 2004 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum