fix: core dumped under Qt 6.4

1. call method metaObject of QMetaType will coredump under Qt 6.4
2. remove `std::terminate()` when AM can't connect to Systemd Signals.
3. call `Subscribe` before connecting to Systemd Signals to guarantee that
   systemd will send UnitNew and UnitRemoved.

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-28 11:11:50 +08:00
committed by black-desk
parent ce2148e5cd
commit 6fae5a758b
8 changed files with 37 additions and 14 deletions

View File

@ -26,6 +26,7 @@ void registerComplexDbusType()
qDBusRegisterMetaType<QMap<QString, QString>>();
qRegisterMetaType<PropMap>();
qDBusRegisterMetaType<PropMap>();
qDBusRegisterMetaType<QDBusObjectPath>();
}
} // namespace