From 58fd68455805b126a729baeda8949928c0c59b00 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 14 Nov 2024 17:51:45 +0000 Subject: [PATCH] debug... --- ovos_workshop/skills/ovos.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 24aec96..750dcde 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -816,7 +816,7 @@ def _startup(self, bus: MessageBusClient, skill_id: str = ""): self.load_data_files() self._register_skill_json() self._register_decorated() - self._register_app_launcher() + #self._register_app_launcher() self.register_resting_screen() self.status.set_started() @@ -850,9 +850,6 @@ def _register_skill_json(self, root_directory: Optional[str] = None): {"skill_id": self.skill_id, "utterances": utts, "lang": lang})) def _register_app_launcher(self): - # homescreen might load after this skill and miss the original events - self.add_event("homescreen.metadata.get", self.handle_homescreen_loaded) - # register app launcher if registered via decorator for attr_name in get_non_properties(self): method = getattr(self, attr_name) @@ -1131,6 +1128,9 @@ def _register_system_event_handlers(self): self.add_event(f"{self.skill_id}.converse.get_response", self.__handle_get_response, speak_errors=False) + # homescreen might load after this skill and miss the original events + self.add_event("homescreen.metadata.get", self.handle_homescreen_loaded) + def _send_public_api(self, message: Message): """ Respond with the skill's public api. @@ -1514,7 +1514,7 @@ def register_regex(self, regex_str: str, lang: Optional[str] = None): def handle_homescreen_loaded(self, message: Message): """homescreen loaded, we should re-register any metadata we want to provide""" self._register_skill_json() - self._register_app_launcher() + #self._register_app_launcher() def handle_enable_intent(self, message: Message): """