remove type from dbus-send reply

Ahmad Ismail ismail783 at gmail.com
Sat Jul 22 14:24:58 UTC 2023


Thank you very much.


*Best Regards,Ahmad Ismail*


On Sat, Jul 22, 2023 at 8:19 AM Lawrence D'Oliveiro <ldo at geek-central.gen.nz>
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 at theon:~> call --json session org.kde.KWin /KWin org.kde.KWin
> currentDesktop
>     [1]
>     ldo at theon:~> call --json session org.kde.KWin /KWin org.kde.KWin
> currentDesktop | jq '.[0]'
>     1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20230722/8245847c/attachment.htm>


More information about the dbus mailing list