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)) }],