ruby-dbus icon indicating copy to clipboard operation
ruby-dbus copied to clipboard

Question: can I export multiple services from a single process - dbus restriction?

Open mistergibson opened this issue 7 years ago • 2 comments

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.

mistergibson avatar Dec 17 '17 22:12 mistergibson

Also - how do I 'un-export' a service when I'm done with it (other than exiting the process)?

mistergibson avatar Dec 17 '17 23:12 mistergibson

Hi!

Regarding exporting multiple services: I think you can achieve this by instantiating multiple Connections, specifically ASystemBuses or ASessionBuses. 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.

mvidner avatar Dec 21 '17 20:12 mvidner

Fixed in #135, released 0.23.0.beta1

mvidner avatar Jun 05 '23 13:06 mvidner