This commit is contained in:
Kovid Goyal 2023-10-24 13:13:57 +05:30
parent 2fc15cf23b
commit 5cbdcf2a5e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -748,7 +748,8 @@ class EbookViewer(MainWindow):
exe = os.path.join(macos_edit_book_bundle_path(), exe)
else:
exe = exe_path(exe)
cmd = [exe]
cmd = [exe] if isinstance(exe, str) else list(exe)
if selected_text:
cmd += ['--select-text', selected_text]
from calibre.gui2.widgets import BusyCursor