This commit is contained in:
Kovid Goyal 2020-04-21 08:40:01 +05:30
parent f0db9b8a2b
commit 1e905098be
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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'), _(