There is currently no way to hide a .desktop file from both menu in desktop environment AND menu editors (NoDisplay only hides in desktop environment).
Using OnlyShowIn=; is not considered as valid by latest version of desktop-file-validate.
So, we should either enable this case or add a None keyword (or X-None for backward compatibility maybe).
Sorry for the noise, reassigning to new (since 2 years) maintainers (Ryan & David).
Well, one can use Hidden=true to hide from *everything*, but I suppose you still wanted the mime-apps association to work...
I'm OK with adding support for OnlyShowIn=, but I need a patch for desktop-file-utils.
(I just checked and OnlyShowIn=; should work without modifications in the KDE implementation.)
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/desktop-file-utils/issues/43.