You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2016/05/19 09:54:49 UTC
[6/8] cordova-ubuntu git commit: use ubuntu-app-stop to stop the app
more cleanly
use ubuntu-app-stop to stop the app more cleanly
(cherry picked from commit bc919c100e4bd89be12b8be141d7f1d7e4dbce40)
Project: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/commit/912db6a4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/tree/912db6a4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/diff/912db6a4
Branch: refs/heads/4.3.x
Commit: 912db6a4efb9bc8c3a921381d03045118ea6b63b
Parents: 9f47bdb
Author: David Barth <da...@canonical.com>
Authored: Tue May 17 18:39:52 2016 +0200
Committer: David Barth <da...@canonical.com>
Committed: Thu May 19 11:17:48 2016 +0200
----------------------------------------------------------------------
bin/templates/project/cordova/lib/run.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/912db6a4/bin/templates/project/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/run.js b/bin/templates/project/cordova/lib/run.js
index ba622a7..6373639 100644
--- a/bin/templates/project/cordova/lib/run.js
+++ b/bin/templates/project/cordova/lib/run.js
@@ -143,9 +143,9 @@ function runOnDevice(rootDir, debug, target, architecture, framework) {
assert.ok(names.length == 1);
- logger.info('Killing application if already running on your device.');
+ logger.info('Stopping application if needed.');
- Devices.adbExec(target, 'shell "ps -A -eo pid,cmd | grep cordova-ubuntu | awk \'{ print \\$1 }\' | xargs kill -9"');
+ Devices.adbExec(target, 'shell "ubuntu-app-stop \\`ubuntu-app-triplet ' + appId + '\\`"');
if (debug)
Devices.adbExec(target, 'forward --remove-all');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org