Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write current state to a statefile (preparation for the future systray applet) #148

Merged
merged 6 commits into from
May 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,22 +195,22 @@ icon_dir="/usr/share/icons/${name}"

# Definition of the icon_checking function: Change icon to "checking"
icon_checking() {
cp -f "${icon_dir}/${name}_checking.svg" "${icon_dir}/${name}.svg" || exit 3
echo "${name}_checking" > "${state_dir}/state"
}

# Definition of the icon_updates_available function: Change icon to "updates-available"
icon_updates_available() {
cp -f "${icon_dir}/${name}_updates-available.svg" "${icon_dir}/${name}.svg" || exit 3
echo "${name}_updates-available" > "${state_dir}/state"
}

# Definition of the icon_installing function: Change icon to "installing"
icon_installing() {
cp -f "${icon_dir}/${name}_installing.svg" "${icon_dir}/${name}.svg" || exit 3
echo "${name}_installing" > "${state_dir}/state"
}

# Definition of the icon_up_to_date function: Change icon to "up to date"
icon_up_to_date() {
cp -f "${icon_dir}/${name}_up-to-date.svg" "${icon_dir}/${name}.svg" || exit 3
echo "${name}_up-to-date" > "${state_dir}/state"
}

# Definition of the check function: Check for available updates, change the icon accordingly and send a desktop notification containing the number of available updates
Expand Down