3 if [ "x" = "x${DBUS_SESSION_BUS_ADDRESS}" ]; then
4 DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus"
6 export DBUS_SESSION_BUS_ADDRESS
10 -e '/^method return .*/d' \
11 -e 's/^Error org.freedesktop.DBus.Error.Failed: "\?\(.*\)"\?$/ERROR: \1/' \
12 -e 's/^ string "\(.*\)"/\1/' \
17 dbus-send --session --print-reply \
18 --dest=org.AGL.afm.user \
33 send install '{"wgt":"'"$f"'","force":true}'
38 send uninstall "\"$i\""
77 usage: $(basename $0) command [arg]
82 runnables list the runnable widgets installed
85 install wgt install the wgt file
88 uninstall id remove the installed widget of id
91 detail id print detail about the installed widget of id
94 runners list the running instance
97 start id start an instance of the widget of id
100 terminate rid terminate the running instance rid
103 pause rid stop the running instance rid
106 continue rid continue the previously rid
109 state rid get status of the running instance rid
115 echo "unknown command $1" >&2