How can I choose between KDE and GNOME at login?

Asked by Uqbar

I'm running Jaunty with GNOME.
I'd like to test the current KDE version and have installed both KDE and KDM.
When I login (through gdm) I cannot choose KDE.
If I manually stop gdm and start kdm I get and error saying that kdm is not the default display manager.
Now what?
Can I avoid that manual switch?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can use GDM to log into KDE, just change the session type in the session menu. If you are logged in, change session type to kde then log in as normal.

Easy when you know how ;)

Revision history for this message
Uqbar (uqbar) said :
#2

Unluckily for both of us, there's no such option in the (current) gdm.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
Uqbar (uqbar) said :
#4

Mine is missing the KDE option ...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Aaah so the session menu is there, you said it wasn't. I thought we had a bigger issue. Oh well this is easy then. You need to manually add it:

From:
http://www.linuxquestions.org/questions/linux-software-2/how-to-start-kde-from-gdm-218335/

gksudo gedit /etc/X11/gdm/Sessions/KDE

Paste this code:

##############################
#!/bin/bash

exec /etc/X11/xdm/Xsession kde
##############################

Save the file and close gedit

sudo chmod +x /etc/X11/gdm/Sessions/KDE

Then log off, see if its there ;)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

This looks good too:

http://ubuntuforums.org/showthread.php?t=2920

Good old MSN search :D

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Here is my kde.desktop

http://pastebin.com/f270cc24

It is in :/usr/share/xsessions

andy@fileserver:/usr/share/xsessions$ ls -l ./kde.desktop
-rw-r--r-- 1 root root 3942 2009-05-22 06:13 ./kde.desktop

It is readable by all and writable by only the owner (root)

Revision history for this message
Uqbar (uqbar) said :
#8

Current best approach is to create kde.desktop in /usr/share/xsessions (where it's actually missing):

[Desktop Entry]
Encoding=UTF-8
Name=KDE Session
Comment=Launch the beauty that is KDE
Exec=/usr/bin/startkde
Icon=
Type=Application

Everything seems to work until the system complains that there is no startkde in the whole filesystem.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Can you give the output of:

file /usr/bin/startkde

Looks like you are missing something

Revision history for this message
Uqbar (uqbar) said :
#10

> Everything seems to work until the system complains that there is no startkde in the whole filesystem.
There's none.

$ file /usr/bin/startkde
Everything seems to work until the system complains that there is no startkde in the whole filesystem.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

If file /usr/bin/startkde displays an error, you havent got the file and need to install something extra, can you please provide the output.

Thanks

Revision history for this message
Uqbar (uqbar) said :
#12

The file is missing.

Revision history for this message
Uqbar (uqbar) said :
#13
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#14

Ok lets nail this:

sudo apt-get --reinstall install kubuntu-desktop

That will install everything KDE needs

Revision history for this message
Uqbar (uqbar) said :
#15

Thanks actionparsnip, that solved my question.