mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Also allow .cmd files in open with
This commit is contained in:
parent
db97e7ca3d
commit
6dba8ca536
@ -104,7 +104,7 @@ if iswindows:
|
|||||||
ans = choose_files(
|
ans = choose_files(
|
||||||
parent, 'choose-open-with-program-manually-win',
|
parent, 'choose-open-with-program-manually-win',
|
||||||
_('Choose a program to open %s files') % filetype.upper(),
|
_('Choose a program to open %s files') % filetype.upper(),
|
||||||
filters=[(_('Executable files'), ['exe', 'bat', 'com'])], select_only_single_file=True)
|
filters=[(_('Executable files'), ['exe', 'bat', 'com', 'cmd'])], select_only_single_file=True)
|
||||||
if ans:
|
if ans:
|
||||||
ans = os.path.abspath(ans[0])
|
ans = os.path.abspath(ans[0])
|
||||||
if not os.access(ans, os.X_OK):
|
if not os.access(ans, os.X_OK):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user