flathub-infra / flatpak-builder-lint

A linter for flatpak-builder manifests
MIT License
48 stars 125 forks source link

Desktop file parser rejects valid files with space after the key #311

Closed play-tarot-2 closed 6 months ago

play-tarot-2 commented 6 months ago

If I understand the Desktop Entry specification correctly, you are allowed to write: Key = value, and the space after Key and before value should be ignored.

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

However, the parser does not do that, so it will fire errors for missing Icon or Exec keys.

bbhtt commented 6 months ago

Yea looks like it. I need to strip any whitespace from key, value pairs coming before/after = or after value.