Skip to content

KDesktopFile::noDisplay: Decide based on XDG_CURRENT_DESKTOP variable

Andrew Shark requested to merge work/ashark/nodisplay_on_non_kde into master

The check for not showing the desktop file was previously incorrect (only checked against "KDE" string) and was removed in 96c6a371.

This MR implements it correctly, based on XDG_CURRENT_DESKTOP environment variable. The similar code can be found in KService::noDisplay().

Merge request reports