From 1cecc6a20c11011a7032798ab17509cbcac878d4 Mon Sep 17 00:00:00 2001 From: Antoine POPINEAU Date: Thu, 24 Jun 2021 23:44:58 +0200 Subject: [PATCH] Removed some more exit conditions since we now try never to exit on authentication failure. --- src/config.rs | 4 ++-- src/ipc.rs | 2 -- src/keyboard.rs | 7 +++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 95559c4..6db2d60 100644 --- a/src/config.rs +++ b/src/config.rs @@ -218,11 +218,11 @@ impl Greeter { if self.config().opt_present("help") { print_usage(opts); - std::process::exit(0); + process::exit(0); } if self.config().opt_present("version") { print_version(); - std::process::exit(0); + process::exit(0); } match env::var("GREETD_SOCK") { diff --git a/src/ipc.rs b/src/ipc.rs index 09a41c5..130ba36 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -67,8 +67,6 @@ fn parse_response(greeter: &mut Greeter, response: Response) -> Result<(), Box Result<(), Box {} }, + #[cfg(debug_assertions)] + Key::Ctrl('x') => { + use crate::config::AuthStatus; + + crate::exit(greeter, AuthStatus::Cancel)?; + } + _ => {} } }