mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Unset NOTIFY_SOCKET so it's not inherited
This commit is contained in:
@@ -20,7 +20,6 @@ use std::ffi::OsString;
|
|||||||
use backend::Backend;
|
use backend::Backend;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use niri::Niri;
|
use niri::Niri;
|
||||||
use sd_notify::NotifyState;
|
|
||||||
use smithay::reexports::calloop::EventLoop;
|
use smithay::reexports::calloop::EventLoop;
|
||||||
use smithay::reexports::wayland_server::{Display, DisplayHandle};
|
use smithay::reexports::wayland_server::{Display, DisplayHandle};
|
||||||
use tracing_subscriber::EnvFilter;
|
use tracing_subscriber::EnvFilter;
|
||||||
@@ -123,9 +122,4 @@ fn main() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
// Tell systemd we're stopping.
|
|
||||||
if let Err(err) = sd_notify::notify(false, &[NotifyState::Stopping]) {
|
|
||||||
warn!("error notifying systemd: {err:?}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -185,7 +185,7 @@ impl Niri {
|
|||||||
zbus_conn = Some(conn);
|
zbus_conn = Some(conn);
|
||||||
|
|
||||||
// Notify systemd we're ready.
|
// 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:?}");
|
warn!("error notifying systemd: {err:?}");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user