fix(default-flatpaks): False notification for "uninstalling" a flatpak

This is an edge usecase where this happens, I can give an example:

1. User sets that default-flatpaks uninstalls "Telegram" `system` flatpak. Default-flatpak does that job successfully.
2. Afterwards, he installs "Telegram" as `user` flatpak
3. False notification will appear on boot that "Telegram" `system` flatpak is uninstalled (reminder that "Telegram" is already uninstalled successfully in step 1).

I found out that you can set `--user` & `--system` flag when issuing flatpak column list of applications.

This change solves the problem.
This commit is contained in:
fiftydinar 2023-12-28 18:53:24 +01:00
parent ec020cd2ca
commit a73390f88b
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ REPO_NAME=$(yq '.repo-name' $REPO_INFO)
NOTIFICATIONS=$(cat /etc/flatpak/notifications)
# Installed flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
FLATPAK_LIST=$(flatpak list --system --columns=application)
# Flatpak list files
INSTALL_LIST_FILE="/etc/flatpak/system/install"

View file

@ -27,7 +27,7 @@ fi
NOTIFICATIONS=$(cat /etc/flatpak/notifications)
# Installed flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
FLATPAK_LIST=$(flatpak list --user --columns=application)
# Flatpak list files
INSTALL_LIST_FILE="/etc/flatpak/user/install"