Skip to content

Commit bbb03fd

Browse files
committed
wlogout: fix breakages
1 parent 955bd1f commit bbb03fd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

wlogout/LogoutButton.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ QtObject {
1111

1212
readonly property var process: Process {
1313
command: ["sh", "-c", button.command]
14-
manageLifetime: false
1514
}
1615

1716
function exec() {
18-
process.running = true;
17+
process.startDetached();
1918
Qt.quit();
2019
}
2120
}

wlogout/shell.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Quickshell
44
ShellRoot {
55
WLogout {
66
LogoutButton {
7-
command: "loginctl lock-screen"
7+
command: "loginctl lock-session"
88
keybind: Qt.Key_K
99
text: "Lock"
1010
icon: "lock"

0 commit comments

Comments
 (0)