fixed a stupid bug with runSystem(...) -- node-webkit...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-08 15:10:38 +04:00
parent b343f0f6ff
commit 948abeaa85

View File

@ -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()
}