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\""
82 usage: $(basename $0) command [arg]
87 runnables list the runnable widgets installed
90 install wgt install the wgt file
93 uninstall id remove the installed widget of id
96 detail id print detail about the installed widget of id
99 runners list the running instance
102 start id start an instance of the widget of id
104 once id run once an instance of the widget of id
107 terminate rid terminate the running instance rid
110 pause rid pause the running instance rid
113 continue rid continue the previously paused rid
116 state rid get status of the running instance rid
122 echo "unknown command $1" >&2