From a1f7f7d2cd79c9391368d0c017452566a5edc44c Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 14 Nov 2016 11:43:46 +0100 Subject: afm-user-daemon: Adds method "once" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the method "once" that is intended to start an application in local mode if it doesn't already run. Returns the state of the running application. Change-Id: I4dfff06fa2d3e95f13a2436a2f1af9174799ddcf Signed-off-by: José Bollo --- scripts/afm-util | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/afm-util b/scripts/afm-util index 243b43c..eb800d9 100755 --- a/scripts/afm-util +++ b/scripts/afm-util @@ -52,6 +52,11 @@ case "$1" in send start "\"$i\"" ;; + once) + i=$2 + send once "\"$i\"" + ;; + terminate|kill) i=$2 send terminate "$i" @@ -96,6 +101,8 @@ The commands are: 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 terminate rid terminate the running instance rid -- cgit 1.2.3-korg