.desktop files

Syntax validation for .desktop files
The official validation tool for files is distributed with the package

Executable bit in .desktop files
files in should have consistent executable bits.

As of 2017-06-16 many ebuilds (mostly KDE) create executable.

Look for executable files on the system with:

Please report any violations upstream.

Ideas / Todo

 * we could check for the x bit in https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/util/_desktop_entry.py
 * In the past there were discussions about requiring them to be executable: https://commit-digest.org/issues/2009-02-08/
 * 2017-06-18 asked on the freedesktop mailing list about the  file.
 * KDE: "Note: Since KDE 4.3, there are more restrictions on authorized desktop files to prevent users from inadvertently running trojan desktop files. Your application launchers should have the executable bit set to prevent issues." source: kde.org
 * Xfce: please see about thunar behavior