feat: support apps launched directly by systemd

Do not filter out those not launched by application manager. Assume
unit name as the app id. When Identify, assume there is only one
unique instance.

Log: support apps launched directly by systemd
Related-to: https://github.com/linuxdeepin/developer-center/issues/8088
This commit is contained in:
Yixue Wang
2024-04-22 17:26:59 +08:00
committed by asterwyx
parent 60965359cb
commit e6fd0a61a5
3 changed files with 17 additions and 34 deletions

View File

@ -54,18 +54,10 @@ void SystemdSignalDispatcher::onPropertiesChanged(QString interface, QVariantMap
void SystemdSignalDispatcher::onUnitNew(QString unitName, QDBusObjectPath systemdUnitPath)
{
if (!unitName.startsWith("app-")) {
return;
}
emit SystemdUnitNew(unitName, systemdUnitPath);
}
void SystemdSignalDispatcher::onUnitRemoved(QString unitName, QDBusObjectPath systemdUnitPath)
{
if (!unitName.startsWith("app-")) {
return;
}
emit SystemdUnitRemoved(unitName, systemdUnitPath);
}