Call dbus::ready even when systemd is enabled

The Gentoo overlap packaged needed this to get socket activation working
properly (https://github.com/fsvm88/cosmic-overlay/pull/88).

For some reason I didn't seem to need this testing socket activation on
Pop!_OS? Unless someone knows exactly why or has a better idea, for now
apply this change along with the socket activation change in
https://github.com/pop-os/xdg-desktop-portal-cosmic/pull/176.
This commit is contained in:
Ian Douglas Scott 2025-10-16 09:59:41 -07:00 committed by Ian Douglas Scott
parent bead74f023
commit cbab016cee

View file

@ -60,7 +60,6 @@ impl State {
if let state::BackendData::Kms(_) = &self.backend {
#[cfg(feature = "systemd")]
systemd::ready(&self.common);
#[cfg(not(feature = "systemd"))]
if let Err(err) = dbus::ready(&self.common) {
error!(?err, "Failed to update the D-Bus activation environment");
}