remove type from dbus-send reply
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Sat Jul 22 02:19:26 UTC 2023
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
More information about the dbus
mailing list