From 6980c7ea178afc01f2fc51bc13feb1bea3b2db2c Mon Sep 17 00:00:00 2001 From: Carsten Lohrke Date: Tue, 1 May 2007 12:29:25 +0000 Subject: [PATCH] Deal a bit more selective with KDE legacy desktop entry path handling. --- eclass/kde-functions.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/kde-functions.eclass b/eclass/kde-functions.eclass index 61ad43f7e380..638017a9c36c 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.151 2007/04/23 19:35:05 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.152 2007/05/01 12:29:25 carlo Exp $ # # Author Dan Armak # @@ -911,10 +911,10 @@ postprocess_desktop_entries() { [[ $EBUILD_PHASE != preinst ]] && [[ $EBUILD_PHASE != install ]] && \ die "postprocess_desktop_entries() has to be called in src_install() or pkg_preinst()." - # Only third party apps, KDE 3.x isn't so basedir spec compliant... - if [[ -z ${KDEBASE} ]] ; then - local desktop_entries="$(find "${D}${PREFIX}/share/applnk" -name '*.desktop' \ - -not -path '*.hidden*' 2>/dev/null)" + if [[ -d ${D}${PREFIX}/share/applnk ]] ; then + # min/max depth is _important_ as it excludes legacy KDE stuff. Moving it would cause breakage. + local desktop_entries="$(find "${D}${PREFIX}/share/applnk" -mindepth 2 -maxdepth 2 \ + -name '*\.desktop' -not -path '*.hidden*' 2>/dev/null)" if [[ -n ${desktop_entries} ]]; then for entry in ${desktop_entries} ; do -- 2.26.2