|
|
2015-04-03
, 17:23
|
|
Community Council |
Posts: 4,902 |
Thanked: 12,827 times |
Joined on May 2012
@ Southerrn Finland
|
#12
|
|
|
2015-04-03
, 19:39
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#13
|
[Unit] Description=Start Battery Overlay After=ofono.service [Service] Type=simple Environment="DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/100000/dbus/user_bus_socket" ExecStart=/usr/bin/harbour-batteryoverlay [Install] WantedBy=multi-user.target
systemctl enable overlayautostrat.service
| The Following User Says Thank You to Schturman For This Useful Post: | ||
|
|
2015-04-03
, 21:04
|
|
|
Posts: 6,431 |
Thanked: 12,683 times |
Joined on Nov 2011
@ Open Mobile Platform, Innopolis, Russia
|
#14
|
|
|
2015-04-04
, 11:23
|
|
Posts: 4 |
Thanked: 1 time |
Joined on Apr 2015
|
#15
|

[Unit] Description=Start Battery Overlay [Service] ExecStart=/usr/bin/harbour-batteryoverlay [Install] WantedBy=default.target
[Unit] Description=Start Battery Overlay [Timer] OnStartupSec=45 [Install] WantedBy=default.target
| The Following User Says Thank You to hlev80 For This Useful Post: | ||
|
|
2015-04-05
, 06:23
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#16
|

|
|
2015-04-05
, 07:27
|
|
Posts: 1,255 |
Thanked: 4,243 times |
Joined on Oct 2014
|
#17
|
|
|
2015-04-05
, 07:39
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#18
|

[Unit] Description=Start Battery Overlay After=lipstick.service [Service] ExecStart=/usr/bin/harbour-batteryoverlay Restart=always [Install] WantedBy=default.target
|
|
2015-04-05
, 10:25
|
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#19
|

| The Following 3 Users Say Thank You to Schturman For This Useful Post: | ||
|
|
2015-04-06
, 07:18
|
|
Posts: 4 |
Thanked: 1 time |
Joined on Apr 2015
|
#20
|
![]() |
| Tags |
| battery, overlay, sailfishos |
| Thread Tools | |
|
I understand harbour apps cannot autostart, but I was thinking maybe it would be possible to be done manually with systemd. No success so far.
I created a .service file
/etc/systemd/system/batteryoverlay.service
As a second attempt I created a .timer for it.
/etc/systemd/system/batteryoverlay.timer
Being new to systemd I'm probably missing something, but maybe someone can improve this approach.