Skip to content

Systemd service

Hi there. I wrote a Systemd .service file to replace copying the .desktop file into autostart.

journalctlDesktopNotification.service

[Unit]
Description=Shows desktop notifications for journalctl errors
Requires=default.target
StartLimitInterval=120
StartLimitBurst=20

[Service]
Type=simple
ExecStart=/usr/bin/journalctl-desktop-notification
Restart=on-failure
RestartSec=6
KillMode=process

[Install]
WantedBy=default.target

It belongs into /etc/systemd/user if installed manually or /usr/lib/systemd/user if installed by a package.
Then run systemctl daemon-reload followed by systemctl --user enable --now journalctlDesktopNotification.service.

You may use it (or not) if you think it's cleaner.