From 01997d9bb16f0db22ce04020ebc29af97bdd1e05 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 8 Nov 2017 06:09:49 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/image-crop-edit.html | 14 ++++++++++++++ ui (gen4)/features/app.js | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/experiments/image-crop-edit.html b/ui (gen4)/experiments/image-crop-edit.html index 43825b50..a75e8e48 100755 --- a/ui (gen4)/experiments/image-crop-edit.html +++ b/ui (gen4)/experiments/image-crop-edit.html @@ -14,5 +14,19 @@ + + + diff --git a/ui (gen4)/features/app.js b/ui (gen4)/features/app.js index d93437cc..49ff6967 100755 --- a/ui (gen4)/features/app.js +++ b/ui (gen4)/features/app.js @@ -226,8 +226,9 @@ var ElectronHostActions = actions.Actions({ var path = pathlib.normalize(base + '/' + filename) requirejs('child_process') - // XXX make this portable (osx, linux)... - .exec('explorer.exe /select,'+JSON.stringify(path.replace(/\//g, '\\'))) + // XXX this is windows-specific... + .exec(`explorer.exe /select,"${ pathlib.normalize(path) }"`) + // XXX osx... //.exec('open -R '+JSON.stringify(path)) }],