Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15134 - Can't remove old kde version from Sessions in kdmrc
Summary: Can't remove old kde version from Sessions in kdmrc
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
Depends on:
Reported: 2003-02-04 17:18 UTC by Jarek Luberek
Modified: 2003-04-21 03:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jarek Luberek 2003-02-04 17:18:54 UTC
I've tried the usual way with kdmconfig tool. I've tried editing the file
directly but there's something that keeps putting the old and non-existing
session alternatives into the SyssionTypes variable.

Reproducible: Always
Steps to Reproduce:
1.Remove session types with control center login manager
2.Logout. Notice that this change "takes", i.e. you changes are noticed
3.Restart xdm service and notice that the old settings come back

Actual Results:  
Effectively nothing

Expected Results:  
Keeped my settings instead of restoring the old which I'm trying to remove.
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-05 17:29:20 UTC
does 'grep SessionTypes /usr/kde/3.1/share/config/kdm/kdmrc' return the correct sessions? 
Comment 2 Jarek Luberek 2003-02-06 14:49:58 UTC
This is the whole picture and commands in chronological order

$tail /etc/X11/xdm/Xservers
:0 local@tty1 /usr/X11R6/bin/X :0 vt7
:1 local@tty2 /usr/X11R6/bin/X :1 vt8

$ grep SessionTypes /usr/kde/3.1/share/config/kdm/kdmrc

(now I remove the unwanted entries with control center and grep again)

$ grep SessionTypes /usr/kde/3.1/share/config/kdm/kdmrc

(now I press CTRL-ALT-F7 to enter the other X-server on vt7 and restart that X-server through the MENU-choice)

$ grep SessionTypes /usr/kde/3.1/share/config/kdm/kdmrc

(the odd thing is that the other KDM shows the correct (reduced) SessionTypes but the file shows what you see above).

(I press CTRL-ALT-F7 again and restart the other X-server. The other KDM now shows the bad SesstionTypes and so does kdmrc)
Something else is obviously changing that variable behind my back and that sucks.


Comment 3 Yannick Koehler (RETIRED) gentoo-dev 2003-02-06 15:41:02 UTC
The kdmrc files variable SessionTypes is auto generated by the Xsession file of 
XWindows but when XWindows start it already have read the past value. 
So when you open kdm it will show th evalue you edited inside kdmrc but next time 
(CTRL-ALT-BACKSPACE) you'll see them all again. 
The reason is that the Xsetup_0 located in /etc/X11/xdm/ will modify the 
$KDEDIR/share/config/kdm/kdmrc but the change can only be seens at the next kdm 
The Xsetup_0 will generate it from the files found inside /etc/X11/Sessions.  If you 
want a permanent change you need to remove the related files in /etc/X11/Sessions and 
that's it. 
Comment 4 Jarek Luberek 2003-02-06 16:47:27 UTC
Excelent answer. Thanks. I suspected as much. A gentoo-patch to kde control center that removes these files would make a lot of sense.
Comment 5 Dan Armak (RETIRED) gentoo-dev 2003-04-21 03:58:45 UTC
Well, those files are owned by the packages that installed them, so the change to the 
kcmodule would have to do stuff about that too, for which the Right Way is to hook into 
portage's own python aip, which however is just now changing in the shift form 2.0.x to 2.1... 
If many other people ask for it I'll work on it but so far you're the only one :-)