Re: Sending a non-existent/not-defined signal

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Sun, 27 Mar 2022 14:15:14 +0200, Sergio Costas wrote:

> For several reasons I need to notify another program using DBus and
> a signal, and I found that I can use "emit_signal()" over a DBus
> object in my standard service/object to send a "random signal" (this
> is, a signal whose name isn't defined in any interface of that DBus
> object).

How do other apps discover what interfaces you define/support? They do
it through introspection. But there seems to be no requirement that
D-Bus apps actually support introspection. So what is there to prevent
you from making up a new random interface on the spot, defining a new
signal which you then send?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.