Add custom PAM configuration to start gnome-keyring
This commit is contained in:
parent
3679ee5561
commit
ef1253aa23
5 changed files with 29 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue