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)?; + } + _ => {} } }