Fix #6438
@@ -72,7 +72,7 @@ contextBridge.exposeInMainWorld('apis', {
showItemInFolder (fullpath) {
if (IS_WIN32) {
- shell.openPath(path.dirname(fullpath))
+ shell.openPath(path.dirname(fullpath).replaceAll("/", "\\"))
} else {
shell.showItemInFolder(fullpath)
}
@@ -487,7 +487,7 @@
(defn safe-path-join [prefix & paths]
(let [path (apply node-path.join (cons prefix paths))]
(if (and (electron?) (gstring/caseInsensitiveStartsWith path "file://"))
- (subs path 7)
+ (js/decodeURIComponent (subs path 7))
path))))
(defn trim-safe