diff --git a/usr/share/ublue-os/firstboot/yafti.yml b/usr/share/ublue-os/firstboot/yafti.yml index 7733cda21f..3a9d0f4a25 100644 --- a/usr/share/ublue-os/firstboot/yafti.yml +++ b/usr/share/ublue-os/firstboot/yafti.yml @@ -23,6 +23,26 @@ screens: - run: flatpak remove --system --noninteractive --all - run: flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo - run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo + check-system-flathub: + source: yafti.screen.consent + values: + title: Missing Flathub Repository (System) + condition: + run: flatpak remotes --system --columns=name | grep flathub | wc -l | grep '^0$' + description: | + We have detected that you don't have Flathub's repository on your system. We will now add that repository to your system-wide list. + actions: + - run: flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo + check-user-flathub: + source: yafti.screen.consent + values: + title: Missing Flathub Repository (User) + condition: + run: flatpak remotes --user --columns=name | grep flathub | wc -l | grep '^0$' + description: | + We have detected that you don't have Flathub's repository on your current user account. We will now add that repository to your account. + actions: + - run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo applications: source: yafti.screen.package values: