diff --git a/i18n/cs/cosmic_greeter.ftl b/i18n/cs/cosmic_greeter.ftl index 752b814..0f16321 100644 --- a/i18n/cs/cosmic_greeter.ftl +++ b/i18n/cs/cosmic_greeter.ftl @@ -2,7 +2,7 @@ accessibility = Přístupnost .screen-reader = Čtečka obrazovky .magnifier = Lupa .high-contrast = Vysoký kontrast - .invert-colors = Inverze barev + .invert-colors = Převrátit barvy cancel = Zrušit caps-lock = Caps Lock je aktivní. enter-user = Zadat jméno ručně... diff --git a/i18n/da/cosmic_greeter.ftl b/i18n/da/cosmic_greeter.ftl index 71244ce..877d130 100644 --- a/i18n/da/cosmic_greeter.ftl +++ b/i18n/da/cosmic_greeter.ftl @@ -1,4 +1,4 @@ -cancel = Afbryd +cancel = Annuller restart = Genstart caps-lock = Skiftelås er aktiv. enter-user = Indtast navn manuelt... diff --git a/src/greeter.rs b/src/greeter.rs index 4a6063f..6431496 100644 --- a/src/greeter.rs +++ b/src/greeter.rs @@ -363,9 +363,6 @@ pub enum Message { Common(common::Message), OutputEvent(OutputEvent, WlOutput), Auth(Option), - /// Non-fatal error message from PAM (`PAM_ERROR_MSG`), reported by greetd as an auth - /// message of type `Error`. Unlike [`Message::Error`] the conversation stays alive. - AuthError(String), ConfigUpdateUser, DialogCancel, DialogConfirm, @@ -1496,13 +1493,6 @@ impl cosmic::Application for App { self.authenticating = true; self.send_request(Request::PostAuthMessageResponse { response }); } - Message::AuthError(error) => { - // The conversation continues, so acknowledge like any other - // non-interactive auth message rather than cancelling the session. - self.common.error_opt = Some(error); - self.authenticating = false; - self.send_request(Request::PostAuthMessageResponse { response: None }); - } Message::Login => { self.common.prompt_opt = None; self.common.error_opt = None; diff --git a/src/greeter/ipc.rs b/src/greeter/ipc.rs index 4e92afe..d3f1e45 100644 --- a/src/greeter/ipc.rs +++ b/src/greeter/ipc.rs @@ -115,8 +115,7 @@ pub fn subscription() -> Subscription { .await; } greetd_ipc::AuthMessageType::Error => { - // PAM_ERROR_MSG: a failed attempt, not a dead session. - _ = sender.send(Message::AuthError(auth_message)).await; + _ = sender.send(Message::Error(auth_message)).await; } }, greetd_ipc::Response::Error {