Re: remove type from dbus-send reply

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]> Sat, 22 Jul 2023 14:19:26 +1200
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
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