From 4a4494c8bd0d861a6372878af1356ec97b3e9c63 Mon Sep 17 00:00:00 2001 From: cweijan Date: Fri, 15 Mar 2024 18:08:18 +0800 Subject: [PATCH] Fix export to pdf and docx fail on MacOS. --- src/service/markdownService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/markdownService.ts b/src/service/markdownService.ts index d24fecb..eca1392 100644 --- a/src/service/markdownService.ts +++ b/src/service/markdownService.ts @@ -63,8 +63,8 @@ export class MarkdownService { "C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe", "C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe", join(homedir(), "AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe"), - '"/Applications/Google Chrome.app"', - '"/Applications/Microsoft Edge.app"', + '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', + '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge', "/usr/bin/microsoft-edge", ]