Add dbus-introspect.sh
This commit is contained in:
parent
bd9dc49847
commit
c8467158a2
8
dotfiles/lib/bin/dbus-introspect.sh
Executable file
8
dotfiles/lib/bin/dbus-introspect.sh
Executable 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 -
|
Loading…
Reference in New Issue
Block a user