mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
avahi: Split app initialization
Tests: - After startup, names module shows a .local domain if app is enabled. - If app is disabled, .local domain is not shown. - When hostname is changed, .local domain name in names modules changes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d2aee03c89
commit
79a6e041ca
@ -85,6 +85,8 @@ class AvahiApp(app_module.App):
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
def post_init(self):
|
||||
"""Perform post initialization operations."""
|
||||
if self.is_enabled():
|
||||
domain_added.send_robust(sender='avahi',
|
||||
domain_type='domain-type-local',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user