Re: remove type from dbus-send reply
Ahmad Ismail <[email protected]> Sat, 22 Jul 2023 20:24:58 +0600
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <CAHAhJwLVsTkVnd_4Qv0POwRz0Ew0QbBcMuf1g6rwfmahnBUHug@mail.gmail.com> |
Thank you very much. *Best Regards,Ahmad Ismail* On Sat, Jul 22, 2023 at 8:19 AM Lawrence D'Oliveiro <[email protected]> wrote: > On Fri, 21 Jul 2023 15:31:52 +0600, Ahmad Ismail wrote: > > > ... dbus-send ... gives output like > > > > int32 4 > > > > Here I only need "4". I do not need the data type. > > Write your own dbus-send alternative. How hard could it be > <https://github.com/ldo/dbussy_examples/blob/master/call>? > > ldo@theon:~> call --json session org.kde.KWin /KWin org.kde.KWin > currentDesktop > [1] > ldo@theon:~> call --json session org.kde.KWin /KWin org.kde.KWin > currentDesktop | jq '.[0]' > 1 >