From 79a6e041cac30b96f41777df491f7d68b3475933 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 11:45:57 -0800 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- plinth/modules/avahi/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/avahi/__init__.py b/plinth/modules/avahi/__init__.py index ae7ca6c09..243cfd5fd 100644 --- a/plinth/modules/avahi/__init__.py +++ b/plinth/modules/avahi/__init__.py @@ -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',