Replies: 3 comments 6 replies
-
|
When you get unique connection name of the sender (":1.217") as a result of It is completely OK and very typical that not all senders do register a well-known name. D-Bus services do, but pure clients or short-lived clients don't have to. If you have control over the code of senders, you may try to call Otherwise you can use Maybe there are more options, but this is what I am currently aware of. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick answer. I missed |
Beta Was this translation helpful? Give feedback.
-
|
Hello again, So I tested this with a small DBus client but unfortunately Will try the getCreds*() family next |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
My use case is the following, I have one systemd service acting as a DBus server, exposing a DBus method that will be called by several clients (also systemd services). I need to know which client called the method, so I used
getObject().getCurrentlyProcessedMessage().getSender().This gives me the unique identifier of the sender (:1.217 for example) but I don't know how to link it to my systemd services, I have no idea who :1.217 is. Is there any solution to this?
I'm using sdbus-cpp v1.17
DBus method:
DBus server log example:
[21-04-2026 17:23:28.529] [myService] [info] [myFile.cpp:121] Sender of this method call: :1.217Monitoring:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions