From 7320c889404bda4ea9dc411fc35cfe4e4490247a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Groniewsky?= Date: Wed, 1 Oct 2025 11:19:04 +0200 Subject: [PATCH] Updated the README and the examples to include user wide installation of flatpak packages. --- README.md | 2 +- example/my_module.py | 3 +++ example/source.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39e945b..733cfe1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Decman > 🎉 Support for Flatpaks was just added! 🎉 -> By default flatpak management this feature is disabled. Take a look at the example to learn how to use flatpaks. +> By default flatpak management this feature is disabled. Take a look at the example to learn how to use flatpaks. You can install to the user as well as the system installation. > 🎉 Decman now has a AUR package! 🎉 > diff --git a/example/my_module.py b/example/my_module.py index 193a34c..16a6e54 100644 --- a/example/my_module.py +++ b/example/my_module.py @@ -116,6 +116,9 @@ class MyModule(Module): def flatpak_packages(self) -> list[str]: return ["org.mozilla.firefox"] + def flatpak_user_packages(self) -> list[str]: + return ["org.github.kolunmi.Bazaar"] + def systemd_units(self) -> list[str]: return ["reflector.timer"] diff --git a/example/source.py b/example/source.py index 0573298..3ee4218 100644 --- a/example/source.py +++ b/example/source.py @@ -37,6 +37,9 @@ decman.flatpak_packages += ["dev.qwery.AddWater"] # They too can be ignored of course decman.ignored_flatpak_packages += ["org.signal.Signal"] +# You can also install them to your user installation instead of the system installation +decman.flatpak_user_packages += ["dev.zed.Zed"] + # To import GPG keys, set the GNUPGHOME environment variable. # It can easily be done with python as well. os.environ["GNUPGHOME"] = "/home/kk/.gnupg/"