#!/bin/bash
#=========================================#
# Simple update notifier (DNF) v0.3.8     #
#=========================================#
CONF="/usr/share/simple-notifier/scripts/update-check"
ICON='/usr/share/icons/hicolor/48x48/apps/simple-notifier.png'
pkill -f 'Enable Updates' &
if [  -f /usr/share/simple-notifier/scripts/update-intervals- ]; then
mv -f /usr/share/simple-notifier/scripts/update-intervals- /usr/share/simple-notifier/scripts/update-intervals
fi
cp -r /usr/share/simple-notifier/scripts/1hour \
/usr/share/simple-notifier/scripts/update-check
sleep 1
yad --width=450 --height=90 --center --on-top --fixed \
--text="\nUpdate check intervals is set at 1 hour" \
--window-icon=$ICON \
--image=$ICON \
--title='Simple Update Notifier' \
--button=OK!/usr/share/simple-notifier/icons/exit.png
exit 0
