Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63748 - unemerge kde-base/kdebase leaves the /etc/X11/Sessions/kde-3.x.y file
Summary: unemerge kde-base/kdebase leaves the /etc/X11/Sessions/kde-3.x.y file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-11 23:44 UTC by J.O. Aho
Modified: 2005-02-12 08:09 UTC (History)
0 users

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


Attachments
A session file for 3.3 that supports chinese input (KDE,208 bytes, text/plain)
2004-09-11 23:47 UTC, J.O. Aho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J.O. Aho 2004-09-11 23:44:05 UTC
When you unemerge KDE (kde-base/kdebase), the /etc/X11/Sessions/kde-3.x.y is left behind and leaves an unuseble session option for the login manager (kdm/gdm/...).

Reproducible: Always
Steps to Reproduce:
1. emerge kde-base/kdebase
2. emerge -C kde-base/kdebase
3. ls /etc/X11/Sessions

Actual Results:  
The /etc/X11/Sessions/kde-3.x.y is still there.

Expected Results:  
The /etc/X11/Sessions/kde-3.x.y should be deleted during unemerge of the
kde-base/kdebase.

Today I installed KDE 3.3 on a machine which I usually don't run any
X-environment, but like to have things installed incase and I made a "ls
/etc/X11/Sessions" and got the following list:
Gnome     ctwm       kde-3.1.4  kde-3.2.1  kde-3.2.3
Xsession  kde-3.1.3  kde-3.1.5  kde-3.2.2  kde-3.3.0

I do only have ctwm, gnome2 and kde 3.3 installed, but there are all to many kde
sessions files here.

Other desktops/windowmanagers has the same problem when you uninstall them, but
when you upgrade you don't notice of this as they only have one session file,
which is over written at each update, while KDE has one for each patch version
and you will have around 3 different session files for the 3.1.x series, and
another three for 3.2.x series (and you most likely will have three for 3.3.x
when 3.4 is released). As there can be more than one version of KDE installed,
it's not possible to have one KDE session, but at least drop the patch version
number, so the session file is called kde-3.2 instead of kde-3.2.x (as you can't
have more than one of the same minor version).

OT: the KDE session file needs to be updated so that it supports other input
methods than just the western.
Comment 1 J.O. Aho 2004-09-11 23:47:16 UTC
Created attachment 39424 [details]
A session file for 3.3 that supports chinese input

Added a session file I have on my system, so that users who has selected
chinese for their environment will be able to use xcin. It's far from a good
script, but it works.
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2004-09-12 02:07:40 UTC
That's because /etc/X11/Sessions is in CONFIG_PROTECT.
It could be put in CONFIG_PROTECT_MASK by default, but there are
a few users that customize the scripts (even you ;)

Dropping the patch number is a good a idea, it is just a pain because
a lot of people reference the script in rc.conf, in the XSESSION var,
so I think it cannot start before 3.4

BTW: I think the customization for chinese input should be made locally for
your system creating a file in /usr/kde/3.3/env (they are sourced at starput.)
Comment 3 J.O. Aho 2004-09-12 07:23:25 UTC
Thats good to hear that the patch number will be removed in the future.

I thought that the session script would be treated like any other config file, that you get a chance to select what to do when running etc-update, so you wouldn't automatically loose your custom scripts, by the way I have selected to create my own KDE file (as I want the KDE session to be higher up than Gnome(2)).

I'll take a look at that /usr/kde/3.3/env, just one thing that I hate about having the possibility to have more than one version of KDE is that I have to customize at every minor version update, had been nice if some stuff could be stored in a global setting directory, so you don't have to anything after an update, but yes, I know it's nothing that will be done and it's quite off topic here.
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-12 08:09:24 UTC
Will not be a problem with kde-3.4. Closing.