Compare commits
2 Commits
cee2f2143b
...
460e11d25f
Author | SHA1 | Date | |
---|---|---|---|
460e11d25f | |||
fa2ee62ea8 |
@ -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
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
lubuntu-update-notifier (0.6.0) UNRELEASED; urgency=medium
|
||||
|
||||
* Rough, initial migration to systemd units.
|
||||
|
||||
-- Simon Quigley <tsimonq2@ubuntu.com> 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
|
||||
|
2
debian/lubuntu-update-notifier.install
vendored
2
debian/lubuntu-update-notifier.install
vendored
@ -1,2 +0,0 @@
|
||||
#data/upg-apply.desktop usr/share/applications
|
||||
data/upg-notifier-autostart.desktop etc/xdg/autostart
|
12
debian/lubuntu-update-notifier.postinst
vendored
Normal file
12
debian/lubuntu-update-notifier.postinst
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# This file can be removed following the release of Lubuntu 24.04 LTS
|
||||
# It's to ensure a smooth transition between the autostart file and the new
|
||||
# systemd user units provided
|
||||
|
||||
rm -f /etc/xdg/autostart/upg-notifier-autostart.desktop
|
||||
rm -f /home/*/.config/autostart/upg-notifier-autostart.desktop
|
||||
|
||||
#DEBHELPER#
|
7
debian/lubuntu-update-notifier.user.service
vendored
Normal file
7
debian/lubuntu-update-notifier.user.service
vendored
Normal file
@ -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
|
10
debian/lubuntu-update-notifier.user.timer
vendored
Normal file
10
debian/lubuntu-update-notifier.user.timer
vendored
Normal file
@ -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
|
@ -16,22 +16,18 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
while true;
|
||||
do
|
||||
OUT=`/usr/lib/update-notifier/apt-check 2>&1`
|
||||
oldIFS=$IFS
|
||||
IFS=';'
|
||||
j=0
|
||||
for STRING in $OUT; do
|
||||
case $j in
|
||||
0)
|
||||
UPG=$STRING;;
|
||||
1)
|
||||
SEC=$STRING;;
|
||||
esac
|
||||
j=`expr $j + 1`
|
||||
done
|
||||
IFS=$oldIFS
|
||||
/usr/libexec/lubuntu-update-notifier/lubuntu-notifier.py -u $UPG -s $SEC -p /usr/bin/lubuntu-upgrader
|
||||
sleep 86400
|
||||
done;
|
||||
OUT=`/usr/lib/update-notifier/apt-check 2>&1`
|
||||
oldIFS=$IFS
|
||||
IFS=';'
|
||||
j=0
|
||||
for STRING in $OUT; do
|
||||
case $j in
|
||||
0)
|
||||
UPG=$STRING;;
|
||||
1)
|
||||
SEC=$STRING;;
|
||||
esac
|
||||
j=`expr $j + 1`
|
||||
done
|
||||
IFS=$oldIFS
|
||||
/usr/libexec/lubuntu-update-notifier/lubuntu-notifier.py -u $UPG -s $SEC -p /usr/bin/lubuntu-upgrader
|
||||
|
Loading…
x
Reference in New Issue
Block a user