From kde-commits Mon Feb 23 03:03:25 2009 From: Michael Pyne Date: Mon, 23 Feb 2009 03:03:25 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/config Message-Id: <1235358205.671953.24084.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123535821300898 SVN commit 930329 by mpyne: I don't think XDG applications must necessarily be installed under KDE, so make sure to check for those as well in isAuthorizedDesktopFile() M +2 -1 kdesktopfile.cpp --- trunk/KDE/kdelibs/kdecore/config/kdesktopfile.cpp #930328:930329 @@ -156,8 +156,9 @@ KStandardDirs *dirs = KGlobal::dirs(); QStringList kdePrefixes ( dirs->kfsstnd_prefixes().split(QDir::separator()) ); + kdePrefixes += dirs->resourceDirs ("xdgdata-apps"); - // Check if the .desktop file is installed as part of KDE. + // Check if the .desktop file is installed as part of KDE or XDG. foreach (const QString &prefix, kdePrefixes) { if (!prefix.isEmpty() && path.startsWith(prefix)) return true;