From f62bfbb85361ab21cb8df3cd7e3913f98de5cf57 Mon Sep 17 00:00:00 2001 From: Subhra264 <59690052+Subhra264@users.noreply.github.com> Date: Mon, 12 Apr 2021 18:05:39 +0530 Subject: [PATCH] Desktop: Fixes #4043: File-Links with German Umlauts don't work (#4804) --- .../app-desktop/gui/NoteEditor/utils/useMessageHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-desktop/gui/NoteEditor/utils/useMessageHandler.ts b/packages/app-desktop/gui/NoteEditor/utils/useMessageHandler.ts index 894397a4f..96d9c20d2 100644 --- a/packages/app-desktop/gui/NoteEditor/utils/useMessageHandler.ts +++ b/packages/app-desktop/gui/NoteEditor/utils/useMessageHandler.ts @@ -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); }