[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DBUS signals?
[Thread Prev] | [Thread Next]
- Subject: Re: DBUS signals?
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Thu, 26 Sep 2024 01:26:46 +0300
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
Hmmm... nevermind I tried in terminal with "dbus-monitor --system" and I got a lot of signals from "org.freedesktop.DBus.Properties", which also can be seen using the code in Gambas. Jussi On Thu, Sep 26, 2024 at 1:00 AM Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> wrote: > I took this code from here <https://gambaswiki.org/wiki/doc/dbus>: > > MySignal = New DBusSignal(DBus.System, "org.freedesktop.Hal.Manager") As > "DBusSignal" > > Public Sub DBusSignal_Signal(Signal As String, Arguments As Variant[]) > Debug Signal > End > > Plugging in/out USB stick or mouse does not give any signal. What this > should detect? > I have never used DBUS before... is there some other signal that would be > good for testing purposes? I would like to see basic things working before > doing anything else. > > The main goal right now is to detect system shutdown. And no, SIGTERM is > not used for GUI applications anymore. I miss the old simple way. > > > Jussi >
DBUS signals? | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |