lock: use default pam config and start without password

Fixes #1800
This commit is contained in:
Moeta Yuko
2025-08-29 15:15:25 +08:00
parent dcfdb2ecff
commit a1479a9b6c
3 changed files with 1 additions and 10 deletions
@@ -33,8 +33,6 @@ Scope {
}
function tryUnlock() {
if (currentText === "") return;
root.unlockInProgress = true;
pam.start();
}
@@ -42,12 +40,6 @@ Scope {
PamContext {
id: pam
// Its best to have a custom pam config for quickshell, as the system one
// might not be what your interface expects, and break in some way.
// This particular example only supports passwords.
configDirectory: "pam"
config: "password.conf"
// pam_unix will ask for a response for the password prompt
onPamMessage: {
if (this.responseRequired) {
@@ -133,7 +133,7 @@ MouseArea {
id: confirmButton
implicitWidth: height
toggled: true
enabled: !root.context.unlockInProgress && root.context.currentText.length > 0
enabled: !root.context.unlockInProgress
colBackgroundToggled: Appearance.colors.colPrimary
onClicked: root.context.tryUnlock()
@@ -1 +0,0 @@
auth required pam_unix.so