From a4f94004cb8b3dd388069f407974578b5ae08e68 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Sun, 5 May 2024 17:09:31 +0200 Subject: [PATCH] fix: use system flatpak install --- build/flatpak-setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/flatpak-setup b/build/flatpak-setup index 2094b1c..1d60e1d 100755 --- a/build/flatpak-setup +++ b/build/flatpak-setup @@ -1,9 +1,10 @@ #!/usr/bin/env bash +# TODO: handle multiple remotes, maybe with yaml config? REPO_NAME=flathub # Installed flatpaks -FLATPAK_LIST=$(flatpak list --user --app --columns=application) +FLATPAK_LIST=$(flatpak list --app --columns=application) # Flatpak list files INSTALL_LIST_FILE="/usr/share/azure/flatpaks/install" @@ -22,6 +23,6 @@ if [[ -f $INSTALL_LIST_FILE ]] || [[ -f $USER_INSTALL_LIST_FILE ]]; then INSTALL_LIST="$COMBINED_INSTALL_LIST" fi notify-send "Flatpak Installer" "Started install of user flatpaks" --app-name="Flatpak Installer" -u NORMAL - flatpak install --user --noninteractive "$REPO_NAME" ${INSTALL_LIST[@]} + flatpak install --noninteractive "$REPO_NAME" ${INSTALL_LIST[@]} notify-send "Flatpak Installer" "Finished install of user flatpaks:\n$INSTALL_LIST" --app-name="Flatpak Installer" -u NORMAL fi