[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/config
From:       Michael Pyne <mpyne () purinchu ! net>
Date:       2009-02-23 3:03:25
Message-ID: 1235358205.671953.24084.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic