View Single Post
Posts: 4 | Thanked: 1 time | Joined on Apr 2015
#15
Thank you all!

As said, I haven't been too familiar with systemd. I looked up how to deploy a user service and it works that way.

/etc/systemd/user/batteryoverlay.service
Code:
[Unit]
Description=Start Battery Overlay

[Service]
ExecStart=/usr/bin/harbour-batteryoverlay

[Install]
WantedBy=default.target
I used a .timer as well to be safe and assumed everything it needs is started by then. (45sec is a bit long though, UI was ready in ~30)

/etc/systemd/user/batteryoverlay.timer
Code:
[Unit]
Description=Start Battery Overlay

[Timer]
OnStartupSec=45

[Install]
WantedBy=default.target
As root:
systemctl --user enable batteryoverlay.timer
 

The Following User Says Thank You to hlev80 For This Useful Post: