Skip to content

Export object on bus name of GApplication #1553

Answered by sdroege
swsnr asked this question in Q&A
Discussion options

You must be logged in to vote

GApplication registers your application's name on the bus. If you want to use zbus you need to select a different name for that and have a separate dbus connection.

For using GDbus, the API works basically the same as in C. In other words, not very convenient until someone puts some effort into making it nicer to use (e.g. via zbus-style macros). https://github.com/gtk-rs/gtk-rs-core/blob/main/examples/gio_dbus_register_object/main.rs is an example that probably answers your question.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@swsnr
Comment options

@bilelmoussaoui
Comment options

@sdroege
Comment options

@swsnr
Comment options

@swsnr
Comment options

Answer selected by swsnr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants