Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Set the workdir in afm/afm-unit.conf
[src/app-framework-main.git]
/
scripts
/
afm-util
diff --git
a/scripts/afm-util
b/scripts/afm-util
index
cc7ab55
..
eb800d9
100755
(executable)
--- a/
scripts/afm-util
+++ b/
scripts/afm-util
@@
-1,8
+1,9
@@
#!/bin/sh
if [ "x" = "x${DBUS_SESSION_BUS_ADDRESS}" ]; then
#!/bin/sh
if [ "x" = "x${DBUS_SESSION_BUS_ADDRESS}" ]; then
- DBUS_SESSION_BUS_ADDRESS
:=unix:path=/run/user/$UID/bus
+ DBUS_SESSION_BUS_ADDRESS
="unix:path=/run/user/$UID/bus"
fi
fi
+export DBUS_SESSION_BUS_ADDRESS
pretty() {
sed \
pretty() {
sed \
@@
-51,6
+52,11
@@
case "$1" in
send start "\"$i\""
;;
send start "\"$i\""
;;
+ once)
+ i=$2
+ send once "\"$i\""
+ ;;
+
terminate|kill)
i=$2
send terminate "$i"
terminate|kill)
i=$2
send terminate "$i"
@@
-58,12
+64,12
@@
case "$1" in
stop|pause)
i=$2
stop|pause)
i=$2
- send
stop
"$i"
+ send
pause
"$i"
;;
resume|continue)
i=$2
;;
resume|continue)
i=$2
- send
continu
e "$i"
+ send
resum
e "$i"
;;
state|status)
;;
state|status)
@@
-95,17
+101,19
@@
The commands are:
run id
start id start an instance of the widget of id
run id
start id start an instance of the widget of id
+ once id run once an instance of the widget of id
+
kill rid
kill rid
- terminate rid
terminate the running instance rid
+ terminate rid terminate the running instance rid
stop rid
stop rid
- pause rid
stop
the running instance rid
+ pause rid
pause
the running instance rid
resume rid
resume rid
- continue rid continue the previously rid
+ continue rid continue the previously
paused
rid
status rid
status rid
- state rid get status of the running instance rid
+ state rid
get status of the running instance rid
EOC
;;
EOC
;;