Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions synodic_client/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,16 @@ def initialize_velopack() -> None:
before any UI is shown. Velopack may need to perform cleanup or apply
pending updates.

On Windows, the uninstall hook removes the ``synodic://`` URI protocol.
Protocol registration happens on every app launch (see ``qt.application``).

.. note::

The SDK's callback hooks only accept ``PyCFunction`` — add an
uninstall hook here when that is fixed upstream.
"""
logger.info('Initializing Velopack (exe=%s)', sys.executable)
try:
app = velopack.App()
app.on_before_uninstall_fast_callback(_on_before_uninstall)
app.run()
logger.info('Velopack initialized successfully')
except Exception as e:
Expand Down