From 0e773e7ad06c06586b5e67afc546bedde48975d1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 9 Mar 2026 15:26:17 -0700 Subject: [PATCH] clients: Fix show empty clients in Desktop section When a client has a package but no desktop package, an empty client entry appears in the Desktop section. Tests: - For MiniDLNA, in the Desktop section, there is not empty entry for totem anymore. Signed-off-by: Sunil Mohan Adapa --- plinth/clients.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/clients.py b/plinth/clients.py index 9cd9a4ffb..48e11fea7 100644 --- a/plinth/clients.py +++ b/plinth/clients.py @@ -44,7 +44,8 @@ def _check(client, condition): def _client_has_desktop(client): """Filter to find out whether an application has desktop clients""" return _check( - client, lambda platform: platform.get('os') in enum_values(Desktop_OS)) + client, lambda platform: platform.get('os') in enum_values(Desktop_OS) + and platform.get('type') != 'package') def _client_has_mobile(client):