1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Fixes #4043: File-Links with German Umlauts don't work (#4804)

This commit is contained in:
Subhra264 2021-04-12 18:05:39 +05:30 committed by GitHub
parent e06a640900
commit f62bfbb853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ export default function useMessageHandler(scrollWhenReady: any, setScrollWhenRea
}
} else if (urlUtils.urlProtocol(msg)) {
if (msg.indexOf('file://') === 0) {
// When using the file:// protocol, openExternal doesn't work (does nothing) with URL-encoded paths
require('electron').shell.openExternal(urlDecode(msg));
// When using the file:// protocol, openPath doesn't work (does nothing) with URL-encoded paths
require('electron').shell.openPath(urlDecode(msg));
} else {
require('electron').shell.openExternal(msg);
}