From ef9ace9e650e088db66e11245692b72a075de034 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Thu, 16 Jan 2014 13:19:39 -0500 Subject: [PATCH] CB-5803 Fix cordova/emulate on windows. --- bin/templates/cordova/lib/emulator.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/templates/cordova/lib/emulator.js b/bin/templates/cordova/lib/emulator.js index a8663fab..69f0e1b5 100644 --- a/bin/templates/cordova/lib/emulator.js +++ b/bin/templates/cordova/lib/emulator.js @@ -178,14 +178,8 @@ module.exports.start = function(emulator_ID) { return Q(emulator_ID); } }).then(function() { - var cmd, args; - if(process.platform == 'win32' || process.platform == 'win64') { - cmd = '%comspec%'; - args = ['/c', 'start', 'cmd', '/c', 'emulator', '-avd', emulator_ID]; - } else { - cmd = 'emulator'; - args = ['-avd', emulator_ID]; - } + var cmd = 'emulator'; + var args = ['-avd', emulator_ID]; var proc = child_process.spawn(cmd, args, { stdio: 'inherit', detached: true }); proc.unref(); // Don't wait for it to finish, since the emulator will probably keep running for a long time. }).then(function() {