chore: Restore flathub enablement

This commit is contained in:
Kyle Gospodnetich 2024-04-14 00:11:26 -07:00
parent 5bcedff7f6
commit c00ce816ef
2 changed files with 4 additions and 7 deletions

View File

@ -22,6 +22,10 @@ if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
fi
fi
# Ensure Flathub is enabled
flatpak remote-add --if-not-exists --system flathub /usr/etc/flatpak/remotes.d/flathub.flatpakrepo
flatpak remote-modify --system --enable flathub
# Flatpak theming support
flatpak override \
--filesystem=xdg-config/gtk-4.0:ro \
@ -81,11 +85,8 @@ rm -f /var/lib/flatpak/extension/org.mozilla.firefox.systemconfig/x86_64/stable/
/usr/bin/cp -rf /usr/share/ublue-os/firefox-config/* /var/lib/flatpak/extension/org.mozilla.firefox.systemconfig/x86_64/stable/defaults/pref/
# Update Flatpaks
# Use until yafti rework is done
flatpak --system update -y
notify-send "Welcome to Bazzite" "Your computer is ready!" --app-name="Flatpak Manager Service" -u NORMAL
mkdir -p /etc/bazzite
echo $VER > $VER_FILE
echo $IMAGE_FLAVOR > $KNOWN_IMAGE_FLAVOR_FILE

View File

@ -36,11 +36,7 @@ if [[ -f $USER_SETUP_VER_FILE && -f $USER_SETUP_FEDORA_VER_RAN && -f $USER_SETUP
fi
# Enable Flathub
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete --user fedora --force
fi
flatpak remote-add --if-not-exists --user flathub /usr/etc/flatpak/remotes.d/flathub.flatpakrepo
flatpak remote-modify --user --enable --prio=2 flathub
# Handle privileged tasks
pkexec /usr/libexec/bazzite-privileged-user-setup "$USER"