From 948abeaa8510140183941a98ddc57bbfd952cba4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 8 Jun 2013 15:10:38 +0400 Subject: [PATCH] fixed a stupid bug with runSystem(...) -- node-webkit... Signed-off-by: Alex A. Naanou --- ui/compatibility.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/compatibility.js b/ui/compatibility.js index f42fd8b8..1695b083 100755 --- a/ui/compatibility.js +++ b/ui/compatibility.js @@ -59,16 +59,20 @@ if(window.CEF_dumpJSON != null){ // XXX will this work on Mac??? path = path.replace(fp, '') } - return proc.exec(path) + return proc.exec('"'+path+'"', function(error, stdout, stderr){ + if(error != null){ + console.error(stderr) + } + }) } - // XXX use a real toggler... window.toggleFullscreenMode = createCSSClassToggler( document.body, '.full-screen-mode', function(action){ gui.Window.get().toggleFullscreen() }) + window.closeWindow = function(){ gui.Window.get().close() }