Skip to content

Commit

Permalink
fix: send notification on flatpak installation (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept committed Oct 1, 2023
1 parent bd77800 commit 49aca95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/bin/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete fedora --force
fi

notify-send "Flatpak installer" "Currently installing system flatpaks" --app-name="Flatpak installer" -u NORMAL

# Lists of flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
INSTALL_LIST=$(cat /etc/flatpak/system/install)
Expand All @@ -32,6 +34,8 @@ if [[ -n $INSTALL_LIST ]]; then
done
fi

notify-send "Flatpak installer" "Finished installing system flatpaks" --app-name="Flatpak installer" -u NORMAL

# Remove flatpaks in list
if [[ -n $REMOVE_LIST ]]; then
for flatpak in $REMOVE_LIST; do
Expand Down
5 changes: 5 additions & 0 deletions usr/bin/ublue-user-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ FLATPAK_LIST=$(flatpak list --columns=application)
INSTALL_LIST=$(cat /etc/flatpak/user/install)
REMOVE_LIST=$(cat /etc/flatpak/user/remove)

notify-send "Flatpak installer" "Currently installing user flatpaks" --app-name="Flatpak installer" -u NORMAL

# Install flatpaks in list
if [[ -n $INSTALL_LIST ]]; then
for flatpak in $INSTALL_LIST; do
Expand All @@ -31,6 +33,9 @@ if [[ -n $INSTALL_LIST ]]; then
done
fi

notify-send "Flatpak installer" "Finished installing user flatpaks" --app-name="Flatpak installer" -u NORMAL


# Remove flatpaks in list
if [[ -n $REMOVE_LIST ]]; then
for flatpak in $REMOVE_LIST; do
Expand Down

0 comments on commit 49aca95

Please sign in to comment.