Skip to content

Commit

Permalink
fix: flatpak-manager may fail on removal (ublue-os#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Oct 13, 2023
1 parent 315e932 commit 2d3897a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ if grep -qz 'fedora' <<< $(flatpak remotes); then

FEDORA_FLATPAKS=$(flatpak list --columns=application,origin | grep -w 'fedora' | awk '{print $1}')
for flatpak in $FEDORA_FLATPAKS; do
if ! flatpak remove --system --noninteractive $flatpak; then
# exit on error
exit 1
fi
flatpak remove --system --noninteractive $flatpak
done
fi

Expand Down
5 changes: 1 addition & 4 deletions usr/bin/ublue-user-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ fi
if [[ -n $REMOVE_LIST ]]; then
for flatpak in $REMOVE_LIST; do
if grep -qz $flatpak <<< $FLATPAK_LIST; then
if ! flatpak remove --user --noninteractive $flatpak; then
# exit on error
exit 1
fi
flatpak remove --user --noninteractive $flatpak
fi
done
fi
Expand Down
2 changes: 2 additions & 0 deletions usr/etc/flatpak/system/remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gnome.Cheese
org.gnome.eog
2 changes: 0 additions & 2 deletions usr/etc/flatpak/user/remove
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
org.gnome.Cheese
org.gnome.eog

0 comments on commit 2d3897a

Please sign in to comment.