From 1e905098bee4fc72dd2a77c95ede9ec924de6316 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Apr 2020 08:40:01 +0530 Subject: [PATCH] ... --- src/calibre/gui2/open_with.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/open_with.py b/src/calibre/gui2/open_with.py index c829fe8972..7f77c43297 100644 --- a/src/calibre/gui2/open_with.py +++ b/src/calibre/gui2/open_with.py @@ -178,8 +178,9 @@ elif isosx: if os.path.isdir(ans): app = get_bundle_data(ans) if app is None: - return error_dialog(parent, _('Invalid Application'), _( + error_dialog(parent, _('Invalid Application'), _( '%s is not a valid macOS application bundle.') % ans, show=True) + return return app if not os.access(ans, os.X_OK): error_dialog(parent, _('Cannot execute'), _(