From 7c65ecff0a8d075e2bbda26c5029665e8895384d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 22 Oct 2024 18:46:00 +0100 Subject: [PATCH] e --- src/core/Hypridle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Hypridle.cpp b/src/core/Hypridle.cpp index e6c01e0..8f99918 100644 --- a/src/core/Hypridle.cpp +++ b/src/core/Hypridle.cpp @@ -498,8 +498,6 @@ void CHypridle::setupDBUS() { m_sDBUSState.connection->addMatch("type='signal',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager'", ::handleDbusSleep); } catch (std::exception& e) { Debug::log(WARN, "Couldn't connect to logind service ({})", e.what()); } - systemConnection.reset(); - Debug::log(LOG, "Using dbus path {}", path.c_str()); if (!IGNORE_SYSTEMD_INHIBIT) { @@ -541,4 +539,6 @@ void CHypridle::setupDBUS() { ::handleDbusNameOwnerChanged); } catch (std::exception& e) { Debug::log(ERR, "Couldn't connect to session dbus\nerr: {}", e.what()); } } + + systemConnection.reset(); }