diff options
author | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-01-17 22:39:22 +0000 |
---|---|---|
committer | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-01-17 22:39:22 +0000 |
commit | 63267ab9e37cf13cd1e44e59aa720c41f053a148 (patch) | |
tree | 9351f8a714920b7b8ef9da03b9c555dc7e218cc4 /eclass/kde-functions.eclass | |
parent | Added local USE flags for KDE4. (diff) | |
download | historical-63267ab9e37cf13cd1e44e59aa720c41f053a148.tar.gz historical-63267ab9e37cf13cd1e44e59aa720c41f053a148.tar.bz2 historical-63267ab9e37cf13cd1e44e59aa720c41f053a148.zip |
Make sure that KDE programs from the :kde-4 or :kde-svn SLOT don't show up in the K-menu for KDE 3.5.
Diffstat (limited to 'eclass/kde-functions.eclass')
-rw-r--r-- | eclass/kde-functions.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index d0c82affda99..a9fe777eb7f9 100644 --- a/eclass/kde-functions.eclass +++ b/eclass/kde-functions.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.159 2007/12/16 16:28:41 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.160 2008/01/17 22:39:22 ingmar Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -905,6 +905,10 @@ buildsycoca() { chmod 0755 /usr/share/services ebegin "Running kbuildsycoca to build global database" + # Filter all KDEDIRs not belonging to the current SLOT from XDG_DATA_DIRS + # before running kbuildsycoca. This makes sure they don't show up in the + # 3.5 K-menu unless the user manually adds them. + XDG_DATA_DIRS="/usr/share:${KDEDIR}/share:/usr/local/share" ${KDEDIR}/bin/kbuildsycoca --global --noincremental &> /dev/null eend $? fi |