Desktop: Still show services with nodisplay=true set

When adding KCMs to the desktop, we add the entry with NoDisplay=true so that it does
not show up in a search. However before this commit, that would cause the entry to
not show up on the desktop as well.

Because of the filtering in the services runner, we already make sure that only relevant
entries can get added to the desktop in the first place.

BUG: 449243
FIXED-IN: 5.24.1
wilder-5.25
Alexander Lohnau 4 years ago committed by Nate Graham
parent d2f948ec20
commit 3e54282420
  1. 2
      kioslave/desktop/kio_desktop.cpp

@ -161,7 +161,7 @@ void DesktopProtocol::prepareUDSEntry(KIO::UDSEntry &entry, bool listing) const
if (!name.isEmpty())
entry.replace(KIO::UDSEntry::UDS_DISPLAY_NAME, name);
if (file.noDisplay() || !file.tryExec())
if (!file.tryExec())
entry.replace(KIO::UDSEntry::UDS_HIDDEN, 1);
}

Loading…
Cancel
Save