#!/usr/bin/env python3 # -*- coding: utf-8 -*- """AzA Chat-only Desktop-Starter (AZA_Chat.exe).""" from __future__ import annotations import sys def main() -> int: if sys.platform == "win32": try: import ctypes ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID( "ch.aza-medwork.chat.desktop", ) except Exception: pass from aza_chat_desktop_host import ( ChatDesktopHost, focus_existing_kontakt_panel, try_acquire_chat_host_singleton, ) if not try_acquire_chat_host_singleton(): focus_existing_kontakt_panel() return 0 host = ChatDesktopHost() host.mainloop() return 0 if __name__ == "__main__": raise SystemExit(main())