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

Connecting to signals of non-existent objects #116

Open
poncovka opened this issue Apr 25, 2023 · 0 comments
Open

Connecting to signals of non-existent objects #116

poncovka opened this issue Apr 25, 2023 · 0 comments
Labels
use case Use cases to consider in the future

Comments

@poncovka
Copy link
Contributor

Sometimes the DBus API requires to connect to signals of DBus objects that don't exist yet:
https://flatpak.github.io/xdg-desktop-portal/#common-conventions

That is not possible to do with proxy objects and it is necessary to use a layer with a lower level of abstraction:

from dasbus.client.handler import GLibClient

GLibClient.subscribe_signal(
    bus.connection,
    service_name,
    object_path,
    interface_name,
    signal_name,
    callback,
)

Let's figure out how to make these layers easier to use and discover.

@poncovka poncovka added the use case Use cases to consider in the future label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use case Use cases to consider in the future
Development

No branches or pull requests

1 participant