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

Recommend zbus and discourage gio for D-Bus #1248

Open
zeenix opened this issue Dec 11, 2023 · 4 comments
Open

Recommend zbus and discourage gio for D-Bus #1248

zeenix opened this issue Dec 11, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@zeenix
Copy link
Contributor

zeenix commented Dec 11, 2023

It has happened a few times already that people come to me (or zbus matrix channel) and say that what a great pleasure it was for them to write their D-Bus code using zbus after suffering through a lot of pain while trying to do the same with gio-rs. While I'm sure gio-rs' can be improved, I doubt it can get on par with zbus w/o extensive changes (if it's possible even).

So I recommend we help people avoid the pain and get them straight to zbus through documentation. I can try to cook a PR for this but I'll need pointers on where to add such docs.

@zeenix zeenix added the enhancement New feature or request label Dec 11, 2023
@sdroege
Copy link
Member

sdroege commented Dec 11, 2023

Getting convenience close to zbus should be possible but it would require to put a lot of effort into that, and basically replicate (parts of) zbus. Neither of us two is going to do that, and the only reason why I merged the current gdbus bindings is because it was apparently useful for some people :)

@bilelmoussaoui
Copy link
Member

The gdbus API has still use cases when interacting with gobject based libraries that wraps a dbus API. We can't make those libraries use zbus from rust without rewriting them from scratch. So I don't see anything actionable here personally.

@zeenix
Copy link
Contributor Author

zeenix commented Dec 11, 2023

The gdbus API has still use cases when interacting with gobject based libraries that wraps a dbus API. We can't make those libraries use zbus from rust without rewriting them from scratch.

Sure. That's why the API should still exist and be supported.

So I don't see anything actionable here personally.

Not everyone is using gdbus binding because of the integration. Many people (like the someone on zbus matrix channel today) use it because they're already using gio-rs in their code anyway so it's natural to reuse gio-rs for dbus as well. We need docs to nudge these folks to use zbus instead.

@bilelmoussaoui
Copy link
Member

Patches are welcome.

@bilelmoussaoui bilelmoussaoui added the documentation Improvements or additions to documentation label Jan 20, 2024
@bilelmoussaoui bilelmoussaoui changed the title [FEATURE REQUEST] Recommend zbus and discourage gio for D-Bus Recommend zbus and discourage gio for D-Bus Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants