diff --git a/data/upg-notifier-autostart.desktop b/data/upg-notifier-autostart.desktop deleted file mode 100644 index 997a097..0000000 --- a/data/upg-notifier-autostart.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Exec=/usr/libexec/lubuntu-update-notifier/lubuntu-upg-notifier.sh -NoDisplay=true -Name=upgNotifier -Icon=system-software-update -Type=Application -Version=0.1 diff --git a/debian/changelog b/debian/changelog index 6cef306..6dfdafb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lubuntu-update-notifier (0.6.0) UNRELEASED; urgency=medium + + * Rough, initial migration to systemd units. + + -- Simon Quigley Thu, 05 Oct 2023 11:10:04 -0500 + lubuntu-update-notifier (0.5.4) lunar; urgency=medium * Disconnect the status_changed() function from the status-changed signal in diff --git a/debian/lubuntu-update-notifier.install b/debian/lubuntu-update-notifier.install deleted file mode 100644 index 052c795..0000000 --- a/debian/lubuntu-update-notifier.install +++ /dev/null @@ -1,2 +0,0 @@ -#data/upg-apply.desktop usr/share/applications -data/upg-notifier-autostart.desktop etc/xdg/autostart diff --git a/debian/lubuntu-update-notifier.user.service b/debian/lubuntu-update-notifier.user.service new file mode 100644 index 0000000..c222408 --- /dev/null +++ b/debian/lubuntu-update-notifier.user.service @@ -0,0 +1,7 @@ +[Unit] +Description=Lubuntu Update Notifier +Wants=update-notifier-download.timer + +[Service] +Type=oneshot +ExecStart=/usr/libexec/lubuntu-update-notifier/lubuntu-upg-notifier.sh diff --git a/debian/lubuntu-update-notifier.user.timer b/debian/lubuntu-update-notifier.user.timer new file mode 100644 index 0000000..791b19d --- /dev/null +++ b/debian/lubuntu-update-notifier.user.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Lubuntu Update Notifier +Requires=lubuntu-update-notifier.service + +[Timer] +Unit=lubuntu-update-notifier.service +OnCalendar=*-*-* *:00:00 + +[Install] +WantedBy=timers.target diff --git a/lubuntu-upg-notifier.sh b/lubuntu-upg-notifier.sh index 62b7fa9..674f979 100755 --- a/lubuntu-upg-notifier.sh +++ b/lubuntu-upg-notifier.sh @@ -33,5 +33,4 @@ while true; done IFS=$oldIFS /usr/libexec/lubuntu-update-notifier/lubuntu-notifier.py -u $UPG -s $SEC -p /usr/bin/lubuntu-upgrader - sleep 86400 done;