Fix service control sliders for SFOS 3.4

systemctl binary has moved from /bin to /usr/bin
This commit is contained in:
Matti Viljanen 2020-10-19 07:55:13 +03:00
parent c3c7aa8fcc
commit c799895a76

View file

@ -53,7 +53,7 @@ Page {
onTriggered: { onTriggered: {
var action = serviceRunning ? "stop" : "start" var action = serviceRunning ? "stop" : "start"
console.log("Action: " + action) console.log("Action: " + action)
_controlProcess.start("/bin/systemctl", ["--user", action, "harbour-batterybuddy.service"]) _controlProcess.start("systemctl", ["--user", action, "harbour-batterybuddy.service"])
} }
} }
@ -72,7 +72,7 @@ Page {
running: false running: false
repeat: false repeat: false
onTriggered: { onTriggered: {
_statusProcess.start("/bin/systemctl", ["--user", "status", "harbour-batterybuddy.service"]) _statusProcess.start("systemctl", ["--user", "status", "harbour-batterybuddy.service"])
} }
} }