You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our problem is that we do not receive dbus signals in the client proxy. We have a slight deviation from the examples and that allows to reproduce the problem.
The deviation resulted from the root-problem that connection to the session bus does not work implicitly as the examples assume. We start the dbus-daemon like so:
As a consequence the environment var DBUS_SESSION_BUS_ADDRESS is set and valid. An example value is unix:path=/tmp/dbus-5LFMrsYHha,guid=282be972820b34d88ecb4351640afde8.
After that we send a request with the following code (this is the adapted code from the XML-based concatenate example code:
The request of the concatenate operation is working, but the signal that is emitted is not received by the proxy.
I have read #25 which seems to be similar to our problem, but we cannot std::move the connection created by `sdbus::createSessionBusConnection()' since we receive a pointer on the IConnection instance but the APIs expect a reference.
Is there a way that sdbus-c++ automatically uses the DBUS_SESSION_BUS_ADDRESS? The samples do not need to explicitly create the connection and seem to work so we must do something wrong.
Is there something that needs additionally to be done if we explicitly manage the connection as shown?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Our problem is that we do not receive dbus signals in the client proxy. We have a slight deviation from the examples and that allows to reproduce the problem.
The deviation resulted from the root-problem that connection to the session bus does not work implicitly as the examples assume. We start the dbus-daemon like so:
As a consequence the environment var DBUS_SESSION_BUS_ADDRESS is set and valid. An example value is
unix:path=/tmp/dbus-5LFMrsYHha,guid=282be972820b34d88ecb4351640afde8.After that we send a request with the following code (this is the adapted code from the XML-based concatenate example code:
The proxy constructer implementation that handles the connection looks like:
The request of the concatenate operation is working, but the signal that is emitted is not received by the proxy.
I have read #25 which seems to be similar to our problem, but we cannot
std::movethe connection created by `sdbus::createSessionBusConnection()' since we receive a pointer on the IConnection instance but the APIs expect a reference.Is there a way that sdbus-c++ automatically uses the
DBUS_SESSION_BUS_ADDRESS? The samples do not need to explicitly create the connection and seem to work so we must do something wrong.Is there something that needs additionally to be done if we explicitly manage the connection as shown?
All reactions