configs/.config/systemd/user/pending-update.service

6 lines
173 B
Desktop File

[Unit]
Description=Write the number of pending updates in /run/user/%U/pending-updates
[Service]
ExecStart=/bin/sh -c 'checkupdates | wc -l > /run/user/%U/pending-updates'