11diff --git a/src/locker.rs b/src/locker.rs
2- index 49b13fe..f13b60e 100644
2+ index 5bf0569..1efcb9b 100644
33--- a/src/locker.rs
44+++ b/src/locker.rs
5- @@ -285,6 +285,7 @@ pub enum Message {
5+ @@ -274,6 +274,7 @@ pub enum Message {
6+ Error(String),
67 Lock,
78 Unlock,
8- SpinnerTick,
99+ LogOut,
1010 }
11-
11+
1212 impl From<common::Message> for Message {
13- @@ -450 ,6 +451 ,13 @@ impl App {
13+ @@ -449 ,6 +450 ,13 @@ impl App {
1414 widget::text(fl!("suspend")),
1515 widget::tooltip::Position::Top
1616 ),
@@ -24,7 +24,7 @@ index 49b13fe..f13b60e 100644
2424 ]
2525 .padding([16.0, 0.0, 0.0, 0.0])
2626 .spacing(8.0);
27- @@ -1087 ,6 +1095 ,15 @@ impl cosmic::Application for App {
27+ @@ -1074 ,6 +1082 ,15 @@ impl cosmic::Application for App {
2828 cosmic::task::message(cosmic::Action::App(Message::Error(err.to_string())))
2929 });
3030 }
@@ -41,13 +41,13 @@ index 49b13fe..f13b60e 100644
4141 self.flags.user_data.time_applet_config = config;
4242 }
4343diff --git a/src/logind.rs b/src/logind.rs
44- index d4f216c..7708e85 100644
44+ index c5561f3..0c29285 100644
4545--- a/src/logind.rs
4646+++ b/src/logind.rs
47- @@ -29 ,6 +29 ,15 @@ pub async fn suspend() -> zbus::Result<()> {
47+ @@ -31 ,6 +31 ,15 @@ pub async fn suspend() -> zbus::Result<()> {
4848 manager.suspend(false).await
4949 }
50-
50+
5151+ pub async fn terminate_session() -> zbus::Result<()> {
5252+ let connection = Connection::system().await?;
5353+ let manager = ManagerProxy::new(&connection).await?;
@@ -60,4 +60,3 @@ index d4f216c..7708e85 100644
6060 async fn inhibit(manager: &ManagerProxy<'_>) -> zbus::Result<OwnedFd> {
6161 let what = InhibitType::Sleep;
6262 let who = "COSMIC Greeter";
63-
0 commit comments