1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixes #7678: Fix open files with non-ASCII characters in path (#7679)

This commit is contained in:
Self Not Found 2023-01-28 20:28:01 +08:00 committed by GitHub
parent 1963835309
commit 10dd4e45ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,11 @@ function shimInit(options = null) {
}
// Open the file
return shim.openUrl(`file://${filepath}`);
// Don't use openUrl() there.
// The underneath require('electron').shell.openExternal() has a bug
// https://github.com/electron/electron/issues/31347
return shim.electronBridge().openItem(filepath);
};
shim.waitForFrame = () => {};