Fix systemd path

This commit is contained in:
Matti Viljanen 2021-04-10 01:32:09 +03:00
parent 4b8b0bcc79
commit 68d7c864a8
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -59,7 +59,7 @@ Page {
onTriggered: { onTriggered: {
var action = daemonEnabledSwitch.checked ? "disable" : "enable" var action = daemonEnabledSwitch.checked ? "disable" : "enable"
console.log("Action: " + action) console.log("Action: " + action)
_toggleProcess.start("/bin/systemctl", ["--user", action, "harbour-batterybuddy.service"]) _toggleProcess.start("systemctl", ["--user", action, "harbour-batterybuddy.service"])
} }
} }
@ -78,7 +78,7 @@ Page {
running: false running: false
repeat: false repeat: false
onTriggered: { onTriggered: {
_checkProcess.start("/bin/systemctl", ["--user", "is-enabled", "harbour-batterybuddy.service"]) _checkProcess.start("systemctl", ["--user", "is-enabled", "harbour-batterybuddy.service"])
} }
} }