Add dbus-introspect.sh

This commit is contained in:
Ivan Malison 2018-02-28 17:13:26 -08:00
parent bd9dc49847
commit c8467158a2
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
dbus-send --session \
--dest=$1 \
--type=method_call \
--print-reply \
$2 \
org.freedesktop.DBus.Introspectable.Introspect | tail -n +2 | sed -e "s/^ *string//" | tr -d '\n' | unescape.py | xmllint --format -