ruby-dbus
ruby-dbus copied to clipboard
Question: can I export multiple services from a single process - dbus restriction?
Dear Developer:
Can I export more than one service (assuming differing names of course) from a single process? I noticed that you use class variables instead of instance variables for the interface.
Thanks,
G.
Also - how do I 'un-export' a service when I'm done with it (other than exiting the process)?
Hi!
Regarding exporting multiple services: I think you can achieve this by instantiating multiple Connection
s, specifically ASystemBus
es or ASessionBus
es. But I have never tried this so it is possible that something breaks it.
Regarding unexporting a service, it is possible in a crude way by calling ReleaseName
, see the file server_spec.rb
for an example.
Fixed in #135, released 0.23.0.beta1