Use libkeepalive to mitigate process suspend

This commit is contained in:
Matti Viljanen 2021-05-30 20:57:27 +03:00
parent 40c9efbd9f
commit a492a6450e
2 changed files with 2 additions and 1 deletions

View file

@ -19,7 +19,7 @@ Description=Battery Buddy background daemon
After=pre-user-session.target After=pre-user-session.target
[Service] [Service]
ExecStart=/usr/bin/harbour-batterybuddy-daemon --logfile ExecStart=/usr/bin/keepalive-tool -- /usr/bin/harbour-batterybuddy-daemon --logfile
[Install] [Install]
WantedBy=user-session.target WantedBy=user-session.target

View file

@ -20,6 +20,7 @@ Source0: %{name}-%{version}.tar.bz2
Requires: sailfishsilica-qt5 >= 0.10.9 Requires: sailfishsilica-qt5 >= 0.10.9
Requires: nemo-qml-plugin-configuration-qt5 Requires: nemo-qml-plugin-configuration-qt5
Requires: nemo-qml-plugin-notifications-qt5 Requires: nemo-qml-plugin-notifications-qt5
Requires: libkeepalive-glib-tools
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2 BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(nemonotifications-qt5) BuildRequires: pkgconfig(nemonotifications-qt5)
BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Core)