Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
fix: split flatpak app and runtime removal (ublue-os#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Oct 13, 2023
1 parent 4e9fbae commit cb9dd05
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ if grep -qz 'fedora' <<< $(flatpak remotes); then
/usr/bin/fedora-third-party disable
flatpak remote-delete fedora --force

FEDORA_FLATPAKS=$(flatpak list --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
# Remove flatpak apps from origin fedora
FEDORA_FLATPAKS=$(flatpak list --app --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
for flatpak in $FEDORA_FLATPAKS; do
flatpak remove --system --noninteractive $flatpak
done

# Remove flatpak runtimes from origin fedora
FEDORA_FLATPAKS=$(flatpak list --runtime --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
for flatpak in $FEDORA_FLATPAKS; do
flatpak remove --system --noninteractive $flatpak
done
Expand Down

0 comments on commit cb9dd05

Please sign in to comment.