made PowerButton working
This commit is contained in:
@@ -18,13 +18,13 @@ MouseArea {
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
Process {
|
||||
id: powerOff
|
||||
command: ["wlogout", "-b", "2"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: console.log(`line read: ${this.text}`)
|
||||
}
|
||||
}
|
||||
// Process {
|
||||
// id: powerOff
|
||||
// command: ["wlogout", "-b", "2"]
|
||||
// stdout: StdioCollector {
|
||||
// onStreamFinished: console.log(`line read: ${this.text}`)
|
||||
// }
|
||||
// }
|
||||
|
||||
MouseArea {
|
||||
hoverEnabled: true
|
||||
@@ -32,7 +32,7 @@ MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
console.log("Running PowerOff Menu")
|
||||
powerOff.startDetached()
|
||||
root.openWlogout()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user