core: Don't exit when logind is absent

logind being missing is non-fatal
This commit is contained in:
gnusenpai 2024-07-16 01:34:47 -04:00
parent 163040e96c
commit 97f3d13e11

View file

@ -480,8 +480,7 @@ void CHypridle::setupDBUS() {
m_sDBUSState.connection->addMatch("type='signal',path='" + path + "',interface='org.freedesktop.login1.Session'", handleDbusLogin, sdbus::floating_slot_t{}); m_sDBUSState.connection->addMatch("type='signal',path='" + path + "',interface='org.freedesktop.login1.Session'", handleDbusLogin, sdbus::floating_slot_t{});
m_sDBUSState.connection->addMatch("type='signal',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager'", handleDbusSleep, sdbus::floating_slot_t{}); m_sDBUSState.connection->addMatch("type='signal',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager'", handleDbusSleep, sdbus::floating_slot_t{});
} catch (std::exception& e) { } catch (std::exception& e) {
Debug::log(CRIT, "Couldn't connect to logind service ({})", e.what()); Debug::log(WARN, "Couldn't connect to logind service ({})", e.what());
exit(1);
} }
Debug::log(LOG, "Using dbus path {}", path.c_str()); Debug::log(LOG, "Using dbus path {}", path.c_str());