from dbus@freedesktop.org >> org.freedesktop.DBus.ListServices() show only activated service, because >> I get no other possibility to gather information about services which >> are available but not activated at the moment I wrote a patch for >> "ListServices" which make return list with both activated and not yet >> activated services. >> >> What do you think about such solution. Or maybe there is other way to >> get all available services but I miss it ? I think a better approach would introduce a new call ListActivatableServices(), because listing only active services is also a useful thing to do - so keeping the existing ListServices() is important.
Created attachment 1588 [details] [review] patch
This patch has some minor style issues; in particular you need to use spaces after parens, and brackets go on their own line (e.g. instead of:) + do { The braces should be indented two spaces. Basically GNU style. get_activatable_services should probably be named like bus_get_activatable or bus_get_activatable_services. Other than that it looks OK to me. Can you fix these issues?
Did this ever get in? Patch most likely needs to be fixed up to apply to latest code if it was added.
Created attachment 5966 [details] [review] ListActivatableNames updated patch against current cvs
Created attachment 5968 [details] [review] this one should work, adapted to new API. Not sure about tests.
This has been added to recent versions of D-Bus
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.