Fix systemd path
This commit is contained in:
parent
4b8b0bcc79
commit
68d7c864a8
1 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue