LINTIAN

# `desktop-entry-file-has-crs`

The desktop entry file has lines ending in carriage-return and line-feed instead of just a line-feed. The Desktop Entry Specification says that lines should end with line-feed alone.

Some software may mistake the carriage-return as a part of the field value.

You can run the following command to remove any `CR` character in a file:

    sed -i 's/\r//g' path/to/file

Severity: | `warning`
Experimental: | `false`

## See also

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

- list of all the affected packages
- the source of this tag