Skip to content

Commit c64df92

Browse files
authored
Merge 12c4620 into 14bc6bd
2 parents 14bc6bd + 12c4620 commit c64df92

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

source/gui/__init__.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: UTF-8 -*-
22
# A part of NonVisual Desktop Access (NVDA)
33
# Copyright (C) 2006-2023 NV Access Limited, Peter Vágner, Aleksey Sadovoy, Mesar Hameed, Joseph Lee,
4-
# Thomas Stivers, Babbage B.V., Accessolutions, Julien Cochuyt, Cyrille Bougot
4+
# Thomas Stivers, Babbage B.V., Accessolutions, Julien Cochuyt, Cyrille Bougot, Luke Davis
55
# This file is covered by the GNU General Public License.
66
# See the file COPYING for more details.
77

@@ -484,10 +484,22 @@ def __init__(self, frame: MainFrame):
484484
self.Bind(wx.EVT_MENU, lambda evt: os.startfile("http://www.nvda-project.org/"), item)
485485
# Translators: The label for the menu item to view NVDA License document.
486486
item = menu_help.Append(wx.ID_ANY, _("L&icense"))
487-
self.Bind(wx.EVT_MENU, lambda evt: os.startfile(getDocFilePath("copying.txt", False)), item)
487+
# Using operation="edit" to os.startfile below, to work around a Windows 11 related
488+
# bug in Python 3.7's os.startfile. (#14725) Test reverting to original behavior after Python upgrade.
489+
self.Bind(
490+
wx.EVT_MENU,
491+
lambda evt: os.startfile(getDocFilePath("copying.txt", False), operation="edit"),
492+
item
493+
)
488494
# Translators: The label for the menu item to view NVDA Contributors list document.
489495
item = menu_help.Append(wx.ID_ANY, _("C&ontributors"))
490-
self.Bind(wx.EVT_MENU, lambda evt: os.startfile(getDocFilePath("contributors.txt", False)), item)
496+
# Using operation="edit" to os.startfile below, to work around a Windows 11 related
497+
# bug in Python 3.7's os.startfile. (#14725) Test reverting to original behavior after Python upgrade.
498+
self.Bind(
499+
wx.EVT_MENU,
500+
lambda evt: os.startfile(getDocFilePath("contributors.txt", False), operation="edit"),
501+
item
502+
)
491503
# Translators: The label for the menu item to open NVDA Welcome Dialog.
492504
item = menu_help.Append(wx.ID_ANY, _("We&lcome dialog..."))
493505
self.Bind(wx.EVT_MENU, lambda evt: WelcomeDialog.run(), item)

0 commit comments

Comments
 (0)