Add custom PAM configuration to start gnome-keyring

This commit is contained in:
Jeremy Soller 2024-09-06 10:34:37 -06:00
parent 3679ee5561
commit ef1253aa23
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
5 changed files with 29 additions and 4 deletions

View file

@ -5,7 +5,7 @@ fn main() {
let passwd = pwd::Passwd::current_user().expect("Failed to get current user");
let mut context = Context::new(
"login", // Service name, decides which policy is used (see `/etc/pam.d`)
"cosmic-greeter", // Service name, decides which policy is used (see `/etc/pam.d`)
Some(&passwd.name), // Optional preset user name
Conversation::new(), // Handler for user interaction
)