Fix bug in module user systemd unit handling

This commit is contained in:
user
2025-01-23 18:10:36 -05:00
parent 53b227859c
commit bde9d9c70d
+7 -5
View File
@@ -680,11 +680,13 @@ class Source:
return result return result
def _all_user_units(self) -> dict[str, set[str]]: def _all_user_units(self) -> dict[str, set[str]]:
result = {} result = self.systemd_user_units
result.update(self.systemd_user_units) for module in [m for m in self.modules if m.enabled]:
for module in self.modules: module_user_units: dict[str, list[str]] = module.systemd_user_units()
if module.enabled: for user in module_user_units.keys():
result.update(module.systemd_user_units()) if user not in result:
result[user] = set()
result[user].update(module_user_units[user])
return result return result