From 77cf2b3afc973dc64ac8080a3fb1a54a054aaa65 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 24 Jan 2022 17:12:07 +0800 Subject: [PATCH] Force using TextEdit.app to open user phrases, etc. --- Source/InputMethodController.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 6095d939..62bae8a6 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -1570,8 +1570,7 @@ NS_INLINE size_t max(size_t a, size_t b) { return a > b ? a : b; } if (![self _checkUserFiles]) { return; } - NSURL *url = [NSURL fileURLWithPath:path]; - [[NSWorkspace sharedWorkspace] openURL:url]; + [[NSWorkspace sharedWorkspace] openFile:path withApplication:@"TextEdit"]; } - (void)openUserPhrases:(id)sender