From 421b628458f237fe9b5b18e84407e521c4ccd10d Mon Sep 17 00:00:00 2001 From: cary-rowen Date: Thu, 24 Aug 2023 22:58:20 +0800 Subject: [PATCH] Fix the bug that some paths cannot be opened --- addon/globalPlugins/clipboardEnhancement/utility.py | 4 ++-- buildVars.py | 2 +- readme.md | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/addon/globalPlugins/clipboardEnhancement/utility.py b/addon/globalPlugins/clipboardEnhancement/utility.py index 66ec667..d25e6d8 100644 --- a/addon/globalPlugins/clipboardEnhancement/utility.py +++ b/addon/globalPlugins/clipboardEnhancement/utility.py @@ -77,7 +77,7 @@ def tryOpenURL(text: str) -> bool: if match: path = match.group(0) if os.path.exists(path): - command = "start explorer.exe " + path + command = 'start explorer.exe "%s"' %path os.system(command) return True else: @@ -86,7 +86,7 @@ def tryOpenURL(text: str) -> bool: if match: path = match.group(0) if os.path.exists(path): - command = "start explorer.exe " + path + command = 'start explorer.exe "%s"' %path os.system(command) return True else: diff --git a/buildVars.py b/buildVars.py index 9c85844..bd9710a 100644 --- a/buildVars.py +++ b/buildVars.py @@ -25,7 +25,7 @@ def _(arg): # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description": _("""对 Windows 剪贴板和 NVDA 最后一次朗读的内容进行增强支持。"""), # version - "addon_version": "2.7.1", + "addon_version": "2.7.2", # Author(s) "addon_author": "大可 ; Cary-rowen ", # URL for the add-on documentation support diff --git a/readme.md b/readme.md index e0dc527..18dadd5 100644 --- a/readme.md +++ b/readme.md @@ -77,6 +77,9 @@ - huaiyinfeilong (代码贡献者) ## 更新日志 +### V2.7.2 更新日志 +* 修复部分路径无法打开。 + ### V2.7.1 更新日志 * 执行截图到剪贴板相关操作时如开启了黑屏则给出提示。