mirror of
https://github.com/YaLTeR/niri.git
synced 2024-11-14 01:10:57 +03:00
Unset NOTIFY_SOCKET so it's not inherited
This commit is contained in:
parent
e09a6d6392
commit
dd5bcde581
@ -20,7 +20,6 @@ use std::ffi::OsString;
|
||||
use backend::Backend;
|
||||
use clap::Parser;
|
||||
use niri::Niri;
|
||||
use sd_notify::NotifyState;
|
||||
use smithay::reexports::calloop::EventLoop;
|
||||
use smithay::reexports::wayland_server::{Display, DisplayHandle};
|
||||
use tracing_subscriber::EnvFilter;
|
||||
@ -123,9 +122,4 @@ fn main() {
|
||||
}
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
// Tell systemd we're stopping.
|
||||
if let Err(err) = sd_notify::notify(false, &[NotifyState::Stopping]) {
|
||||
warn!("error notifying systemd: {err:?}");
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ impl Niri {
|
||||
zbus_conn = Some(conn);
|
||||
|
||||
// Notify systemd we're ready.
|
||||
if let Err(err) = sd_notify::notify(false, &[NotifyState::Ready]) {
|
||||
if let Err(err) = sd_notify::notify(true, &[NotifyState::Ready]) {
|
||||
warn!("error notifying systemd: {err:?}");
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user