dotfiles/dotfiles/lib/functions/dbus_introspect

13 lines
257 B
Plaintext
Raw Normal View History

2021-08-02 05:18:07 -06:00
#!/usr/bin/env sh
function dbus-introspect {
dbus-send --session \
--dest=$1 \
--type=method_call \
--print-reply \
$2 \
org.freedesktop.DBus.Introspectable.Introspect | tail -n +2 | sed -e "s/^ *string//"
}
2021-08-02 05:56:09 -06:00
dbus-introspect "$@"