Add dbus-introspect.sh

This commit is contained in:
2018-02-28 17:13:26 -08:00
parent bd9dc49847
commit c8467158a2

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 -