artyom-poptsov / guile-dbus

GNU Guile bindings to DBus.
GNU General Public License v3.0
5 stars 2 forks source link

Unbound variable: %dbus-message-new-method-call #1

Open Apteryks opened 3 years ago

Apteryks commented 3 years ago

Hello, and thank you for providing this promising Guile library.

I tried the following, but it seems the version checked in this repository is incomplete:

,import (dbus message)
scheme@(guile-user)> (make-dbus-message/method-call #:destination "org.freedesktop.DBus" #:path "/org/freedesktop/DBus" #:iface "org.freedesktop.DBus" #:method "ListNames")
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Unbound variable: %dbus-message-new-method-call

Is this expected at this point, or simply an omission?

Thank you!

Apteryks commented 2 years ago

I've ended up using this pure Scheme D-Bus library: https://gitlab.com/weinholt/ac-d-bus; if anyone needs some real life example, you can consult https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/dbus-service.scm as well as https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/jami-service.scm.