Skip to content

fix(mpris): support legacy dbus-fast errors - #89

Merged
locez merged 1 commit into
mainfrom
fix/dbus-fast-errors-compat
Sep 4, 2026
Merged

locez merged 1 commit into
mainfrom
fix/dbus-fast-errors-compat

Conversation

@locez

@locez locez commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Use DBusFastError on dbus-fast 5.0 and newer.
  • Fall back to AuthError, DBusError, InterfaceNotFoundError, and SignalDisabledError on older releases.
  • Keep MPRIS boundary handling on the shared DBUS_ERRORS contract and cover the installed API in tests.

Verification

  • QT_QPA_PLATFORM=offscreen UV_CACHE_DIR=/tmp/kotonoha-uv-cache uv run pytest -q — 923 passed, 10 skipped
  • uv run ruff check . — passed
  • Targeted ty check for changed files — passed
  • git diff --check — passed

Risks

  • The legacy branch remains until the minimum supported dbus-fast version is raised to 5.0.
  • Full ty check still reports the repository's existing optional mutagen import diagnostics when the extra is not installed.

Use DBusFastError on dbus-fast 5.0 and newer, while retaining the legacy error set for older releases so MPRIS boundary handling remains compatible.
@locez
locez merged commit 8c3c991 into main Sep 4, 2026
5 checks passed
@locez
locez deleted the fix/dbus-fast-errors-compat branch September 4, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant