diff --git a/activate_linux/shell.qml b/activate_linux/shell.qml index 101fa1a..d5e442e 100644 --- a/activate_linux/shell.qml +++ b/activate_linux/shell.qml @@ -24,8 +24,8 @@ ShellRoot { bottom: 50 } - width: content.width - height: content.height + implicitWidth: content.width + implicitHeight: content.height color: "transparent" diff --git a/wlogout/LogoutButton.qml b/wlogout/LogoutButton.qml index 93f0100..cc8e3b3 100644 --- a/wlogout/LogoutButton.qml +++ b/wlogout/LogoutButton.qml @@ -11,11 +11,10 @@ QtObject { readonly property var process: Process { command: ["sh", "-c", button.command] - manageLifetime: false } function exec() { - process.running = true; + process.startDetached(); Qt.quit(); } } diff --git a/wlogout/shell.qml b/wlogout/shell.qml index 777b3ab..178d133 100644 --- a/wlogout/shell.qml +++ b/wlogout/shell.qml @@ -4,7 +4,7 @@ import Quickshell ShellRoot { WLogout { LogoutButton { - command: "loginctl lock-screen" + command: "loginctl lock-session" keybind: Qt.Key_K text: "Lock" icon: "lock"