From 81099daee87a4fb19623c59a66f8b9b775ffecc5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 14 Jul 2013 21:46:55 +0400 Subject: [PATCH] fixed paths, now working standalone... Signed-off-by: Alex A. Naanou --- ui/Makefile | 2 +- ui/compatibility.js | 2 +- ui/data.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/Makefile b/ui/Makefile index 8b57ccdb..392256e2 100755 --- a/ui/Makefile +++ b/ui/Makefile @@ -97,7 +97,7 @@ zip: $(APP_ZIP) node-deps: npm install fs.extra - npm install exif +# npm install exif dev: $(CSS_FILES) unzip -uj $(wildcard targets/node-webkit/node-webkit-*-win-ia32.zip) -d . diff --git a/ui/compatibility.js b/ui/compatibility.js index e2ea7c6b..ff347392 100755 --- a/ui/compatibility.js +++ b/ui/compatibility.js @@ -51,7 +51,7 @@ if(window.CEF_dumpJSON != null){ .normalize(p.replace(/file:\/\/\//, '')) } window.execPathPush = function(p){ - process.env.PATH += ';' + path.normalize(process.cwd() + '/' + p) + process.env.PATH += ';' + path.normalize(path.dirname(process.execPath) + '/' + p) } diff --git a/ui/data.js b/ui/data.js index 2a746fda..a2b79070 100755 --- a/ui/data.js +++ b/ui/data.js @@ -1203,7 +1203,9 @@ function getWorkerQueue(name, no_auto_start){ // kill all worker queues... function killAllWorkers(){ for(var k in WORKERS){ - console.log('Worker: Stopping:', k) + if(WORKERS[k].isWorking()){ + console.log('Worker: Stopped:', k) + } WORKERS[k].kill() } WORKERS = {}