3 if [ "x" = "x${DBUS_SESSION_BUS_ADDRESS}" ]; then
4 DBUS_SESSION_BUS_ADDRESS:=unix:path=/run/user/$UID/bus
9 -e '/^method return .*/d' \
10 -e 's/^Error org.freedesktop.DBus.Error.Failed: "\?\(.*\)"\?$/ERROR: \1/' \
11 -e 's/^ string "\(.*\)"/\1/' \
16 dbus-send --session --print-reply \
17 --dest=org.AGL.afm.user \
32 send install '{"wgt":"'"$f"'","force":true}'
37 send uninstall "\"$i\""
76 usage: $(basename $0) command [arg]
81 runnables list the runnable widgets installed
84 install wgt install the wgt file
87 uninstall id remove the installed widget of id
90 detail id print detail about the installed widget of id
93 runners list the running instance
96 start id start an instance of the widget of id
99 terminate rid terminate the running instance rid
102 pause rid stop the running instance rid
105 continue rid continue the previously rid
108 state rid get status of the running instance rid
114 echo "unknown command $1" >&2