Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin conformance with desktop entry specification #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peppidesu
Copy link

See anyrun-org/anyrun#115

The application plugin now scrubs entries according to the Desktop Entry Specification:

Desktop File ID

Each desktop entry representing an application is identified by its desktop file ID, which is based on its filename.

To determine the ID of a desktop file, make its full path relative to the $XDG_DATA_DIRS component in which the desktop file is installed, remove the "applications/" prefix, and turn '/' into '-'.

For example /usr/share/applications/foo/bar.desktop has the desktop file ID foo-bar.desktop.

If multiple files have the same desktop file ID, the first one in the $XDG_DATA_DIRS precedence order is used.

Before, desktop entries (not files, but the entries within each file) would be overridden if they had matching Name and Icon fields, and $XDG_DATA_DIRS precedence was disregarded completely. This meant that overriding the Name or Icon fields would be impossible, because it would simply appear as a second entry (not overriding the original one).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant