fix(flatpak): Locally install Flathub repo and fix Fedora repo removal (#126)

* fix(user-setup): Locally install Flathub repo

This uses the existing Flathub repo file in /etc/flatpak/remotes.d so that it can be added completely offline

* chore(flatpak-system-install): Remove Fedora system flatpakrepo
This commit is contained in:
RJ Trujillo 2023-08-09 09:50:35 -06:00 committed by GitHub
parent 717c1e6e7e
commit 04a6a588aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -43,9 +43,9 @@ fi
# Setup Flathub
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete fedora --force
flatpak remote-delete --user fedora --force
fi
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
# Prevent future executions
echo "Writing state file"

View File

@ -4,6 +4,7 @@ source /etc/default/bazzite
if grep -qz 'fedora' <<< $(flatpak remotes); then
/usr/lib/fedora-third-party/fedora-third-party-opt-out
/usr/bin/fedora-third-party disable
flatpak remote-delete fedora --force
fi
if [[ -f '/etc/flatpak/install' ]]; then