bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-11-08 06:09:49 +03:00
parent 708922cd7e
commit 01997d9bb1
2 changed files with 17 additions and 2 deletions

View File

@ -14,5 +14,19 @@
<body> <body>
<!-- TODO:
- setup standard single image mode
- add elements:
- crop rectangle
- crop preset selector
- free form
- 2:3
- 3:2
- 1:1
- 16:9
- add...
-->
</body> </body>
</html> </html>

View File

@ -226,8 +226,9 @@ var ElectronHostActions = actions.Actions({
var path = pathlib.normalize(base + '/' + filename) var path = pathlib.normalize(base + '/' + filename)
requirejs('child_process') requirejs('child_process')
// XXX make this portable (osx, linux)... // XXX this is windows-specific...
.exec('explorer.exe /select,'+JSON.stringify(path.replace(/\//g, '\\'))) .exec(`explorer.exe /select,"${ pathlib.normalize(path) }"`)
// XXX osx...
//.exec('open -R '+JSON.stringify(path)) //.exec('open -R '+JSON.stringify(path))
}], }],