Should .desktop files have executable permissions?

Roman Chistokhodov freeslave93 at gmail.com
Sun Jun 18 14:47:20 UTC 2017


I can't find the standard on that too.
But some desktops implement the concept of authorized (trusted) .desktop
files, not sure that the requirements are uniform across desktops though.
Eg. on KDE desktop file is authorized if either if these applies: [1]
1. Desktop file is in standard location
2. Desktop file has root owner
3. The calling process has executable permission on that desktop file

[1]
https://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKDesktopFile.html#ab9222da1ca239fc3847d31833bc45552

On Sun, Jun 18, 2017 at 2:50 PM, Jonas Stein <news at jonasstein.de> wrote:

> Dear all,
>
> we had recently a discussion on the gentoo developer cannel, if .desktop
> files should be all executable, or all not-executable.
>
> I could not find this in the definition. [1]
> Can you help us and could you add a note about the executable bit in the
> standard definition, please?
>
> [1]
> https://standards.freedesktop.org/desktop-entry-spec/
> desktop-entry-spec-latest.html
>
> Best,
>
> --
> Jonas Stein
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/xdg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20170618/d898ffb5/attachment.html>


More information about the xdg mailing list