Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208282 - environnment variable XDG_DATA_DIRS includes the path /usr/kde/4.0/share when logged in, in a kde3 session.
Summary: environnment variable XDG_DATA_DIRS includes the path /usr/kde/4.0/share when...
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:
: 208136 210756 kde-3.5.9 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-31 12:25 UTC by Christian Häne
Modified: 2009-04-11 02:19 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Häne 2008-01-31 12:25:30 UTC
When kde 3.5.8 and kde 4.0.0 is installed on one machine the XDG_DATA_DIRS variable is set to /usr/share:/usr/kde/4.0/share:/usr/local/share independent of the kde session one is logged in. This causes the problem that in kde3 are a lot of double menu entries and mission icons in the k-menu. This can be removed when kbuildsycoca is run after removing the path /usr/kde/4.0/share form the environment variable XDG_DATA_DIRS. But after some time the double entries and the  missing icons reappear.

Reproducible: Always

Steps to Reproduce:
1. install kde-3.5.8
2. install kde-4.0.0
3. start kde-3.5.8
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2008-01-31 12:56:10 UTC
*** Bug 208136 has been marked as a duplicate of this bug. ***
Comment 2 Liu DongMiao 2008-01-31 17:18:38 UTC
(In reply to comment #0)
> when kbuildsycoca is run after removing the path /usr/kde/4.0/share form the
> environment variable XDG_DATA_DIRS. But after some time the double entries and
> the  missing icons reappear.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. install kde-3.5.8
> 2. install kde-4.0.0
> 3. start kde-3.5.8
> 
in /usr/kde4.0/bin/startkde, there are:
if test -z "$XDG_DATA_DIRS"; then
    XDG_DATA_DIRS="`kde4-config --prefix`/share:/usr/share:/usr/local/share"
    export XDG_DATA_DIRS
fi

but /usr/kde3.5/bin/startkde,there arent...
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2008-02-19 21:13:45 UTC
*** Bug 210756 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-24 20:35:46 UTC
*** Bug 211305 has been marked as a duplicate of this bug. ***
Comment 5 Florian Engel 2008-03-03 19:23:21 UTC
the problem can be solved by changing the startkde files, so before the start every kde version exports the right XDG_DATA_DIRS. in the export section in /usr/kde/3.5/bin/startkde, 
'export XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/kde/3.5/share"'
needs to be added, while in /usr/kde/4.0/bin/startkde
'export XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/kde/4.0/share"'
needs to be added in the same section. this keeps the double entries from the menu, although the main problem comes from the file which sets the XDG_DATA_DIRS, because in /etc/env.d/44kdepaths-kde-4 and 45kdepaths-3.5 it is set the right way, but in /etc/csh.env and profile.env, which are both generated by env-update and in profile.csh which is the eselect configuration file, the XDG_DATA_DIRS exports the wrong dirs, while changing them there will make no sense, after each kde version needs it's own dirs in there, so in my opinion, the startkde script is the right place to export the dirs.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-04-11 02:19:56 UTC
I believe this was fixed on KDE-4.1.
Furthermore, we're currently working to get a default XDG_DATA_DIRS in the system. You can follow that on bug 264647