From 5d4065623a9b9731a0eff8d9e3ee6dde3c5adcba Mon Sep 17 00:00:00 2001 From: Kivi Kaitaniemi Date: Fri, 19 Dec 2025 23:05:42 +0200 Subject: [PATCH] Fix flatpak list_apps when no apps are installed --- src/decman/plugins/flatpak.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/decman/plugins/flatpak.py b/src/decman/plugins/flatpak.py index cf1a757..7e47e3b 100644 --- a/src/decman/plugins/flatpak.py +++ b/src/decman/plugins/flatpak.py @@ -176,6 +176,7 @@ class FlatpakCommands: If ``as_user`` is ``True``, run the command as the user for whom packages are removed. """ + return [ "flatpak", "remove", @@ -220,6 +221,10 @@ class FlatpakInterface: ) packages = packages_text.strip().split("\n") + # In case no apps are installed, the list contains this + if "" in packages: + packages.remove("") + return set(packages) def install(self, packages: set[str], user: str | None = None):