mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Filter more useless desktop files
We now also exclude the apps which are not suitable for the current platform (some apps may be X11 only), and the ones that run in a terminal, such as vim and ipython -- they're just not useful to show on the homescreen. Reviewed-by:notmart
This commit is contained in:
parent
fdb34e9a74
commit
75664c118a
1 changed files with 4 additions and 1 deletions
|
|
@ -109,7 +109,10 @@ void ApplicationListModel::loadApplications()
|
|||
if (entry->property("Exec").isValid()) {
|
||||
KService::Ptr service(static_cast<KService* >(entry.data()));
|
||||
if (service->isApplication() &&
|
||||
!blacklist.contains(service->desktopEntryName() + QStringLiteral(".desktop")) ) {
|
||||
!blacklist.contains(service->desktopEntryName() + QStringLiteral(".desktop")) &&
|
||||
!service->showOnCurrentPlatform() &&
|
||||
!service->property("Terminal", QVariant::Bool).toBool()) {
|
||||
|
||||
data.name = service->name();
|
||||
data.icon = service->icon();
|
||||
data.storageId = service->storageId();
|
||||
|
|
|
|||
Loading…
Reference in a new issue