validate_desktop_entry: filter more KDE noise.
authorMichael Palimaka <kensington@gentoo.org>
Mon, 3 Sep 2012 15:08:36 +0000 (01:08 +1000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Sep 2012 19:50:02 +0000 (12:50 -0700)
pym/portage/util/_desktop_entry.py

index bafac75d3214459694dad882c7b72b8013c63fd8..aa730ded323d65b9378b29d19fdd3a94ce4c3315 100644 (file)
@@ -44,13 +44,18 @@ def parse_desktop_entry(path):
 _trivial_warnings = re.compile(r' looks redundant with value ')
 _ignore_kde_key_re = re.compile(r'^\s*(configurationType\s*=|Type\s*=\s*Service)')
 _ignore_kde_types = frozenset(
-       ["AkonadiAgent", "AkonadiResource", "Service", "ServiceType"])
+       ["AkonadiAgent", "AkonadiResource", "Service", "ServiceType", "XSession"])
 
 # kdebase-data installs files with [Currency Code] sections
 # in /usr/share/locale/currency
 # kdepim-runtime installs files with [Plugin] and [Wizard]
 # sections in /usr/share/apps/akonadi/{plugins,accountwizard}
-_ignore_kde_sections = ("Currency Code", "Plugin", "Wizard")
+# kdm installs files with [KCM Locale], [KDE Desktop Pattern],
+# [KdmGreeterTheme] and [Wallpaper] sections in various directories
+# libkdegames installs files with [KDE Backdeck] sections in
+# /usr/share/apps/carddecks/
+# Various KDE games install files with [KGameTheme] sections
+_ignore_kde_sections = ("Currency Code", "KCM Locale", "KDE Backdeck", "KDE Desktop Pattern", "KDE Desktop Program", "KdmGreeterTheme", "KGameTheme", "Plugin", "Wallpaper", "Wizard")
 
 _ignored_errors = (
                # Ignore error for emacs.desktop: