Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some error handling to zbus, and unify dbus/zbus Error type #52

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

taoky
Copy link
Contributor

@taoky taoky commented Aug 30, 2024

The current implementation of zbus unwraps all errors, which could lead to crashes in cases where, for example, the D-Bus name is already taken by another program (possibly another instance). This PR ports error handling in dbus implementation to zbus, and moves Error in dbus to mpris/mod.rs as they share almost same logic.

Related: #32

@Sinono3
Copy link
Owner

Sinono3 commented Nov 4, 2024

Thank you very much for this PR! Merging.

@Sinono3 Sinono3 merged commit 9dedb06 into Sinono3:master Nov 4, 2024
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.

2 participants