update
This commit is contained in:
36
AzA march 2026/aza_chat_app.py
Normal file
36
AzA march 2026/aza_chat_app.py
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/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())
|
||||
Reference in New Issue
Block a user