Fix Dbus error when using the systemd service.

Before it commit you will get a error related to the Dbus activation because the service was trying to call it as root user but in a different session, the error is like 'Error(Dbus(D-Bus error: Server address of type unix was missing argument path or abstract (org.freedesktop.DBus.Error.BadAddress)'.
This commit is contained in:
Eduard Tolosa 2019-03-27 02:59:19 -05:00
parent 8802f64248
commit ec818adc10
2 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,13 @@
[Unit]
Description=Automatically check updates and send notifications via libnotify
Description=Automatically check updates and send notifications via notify-rust
After=network-online.target
ConditionUser=!root
[Service]
Type=simple
Type=oneshot
ExecStart=/usr/bin/upcheck
KillMode=process
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
WantedBy=default.target