From 4df9b70c26be4e462647f4ebad3a5377a6211c59 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 14 Oct 2024 16:57:42 +0200 Subject: [PATCH] apps: Hide page if PackageKit is not installed. The Applications page uses PackageKit. Hide it via a manifest condition if it isn't available. Similar to commit 02782847b977e for the Software Updates page. --- pkg/apps/manifest.json | 4 ++++ test/verify/check-apps | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/pkg/apps/manifest.json b/pkg/apps/manifest.json index ee7321940720..fce8a9c355a2 100644 --- a/pkg/apps/manifest.json +++ b/pkg/apps/manifest.json @@ -1,4 +1,8 @@ { + "conditions": [ + {"path-exists": "/lib/systemd/system/packagekit.service"}, + {"path-not-exists": "/sysroot/ostree"} + ], "tools": { "index": { "label": "Applications", diff --git a/test/verify/check-apps b/test/verify/check-apps index ce90205b11b3..7dddb61bd163 100755 --- a/test/verify/check-apps +++ b/test/verify/check-apps @@ -391,6 +391,20 @@ This