Skip to content

Commit

Permalink
feat: Notify for initial flatpak setup (#41)
Browse files Browse the repository at this point in the history
* feat: Add notification for start of flatpak-manager process

* feat: Add notification for end of flatpak-manager process

* chore: Bump flatpak-manager version
  • Loading branch information
zelikos authored Sep 30, 2023
1 parent 934ce8f commit d8e91dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/files/usr/bin/zeliblue-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Adapted from uBlue's Bazzite (https://github.com/ublue-os/bazzite/blob/main/system_files/desktop/shared/usr/bin/bazzite-flatpak-manager)

# Script Version
VER=2
VER=3
VER_FILE="/etc/zeliblue/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)

Expand All @@ -13,6 +13,8 @@ if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
exit 0
fi

/usr/bin/notify-send --app-name="Initial Setup" --urgency=normal --icon=applications-system-symbolic "Finalizing system setup. Please wait."

# Opt out of and remove Fedora's flatpak repo
if grep -qz 'fedora' <<< $(flatpak remotes); then
/usr/lib/fedora-third-party/fedora-third-party-opt-out
Expand Down Expand Up @@ -46,5 +48,7 @@ if [[ -n $REMOVE_LIST ]]; then
done
fi

/usr/bin/notify-send --app-name="Initial Setup" --urgency=normal --icon=applications-system-symbolic "Setup complete. Your system is ready to go!"

mkdir -p /etc/zeliblue
echo $VER > $VER_FILE

0 comments on commit d8e91dc

Please sign in to comment.