Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Add entitlements #89

Merged
merged 1 commit into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fah/FAHControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ def on_viewer(self, widget, data = None):
if not (len(cmd) and len(cmd[0])): cmd = ['FAHViewer']

if sys.platform == 'darwin':
if not cmd[0].endswith('.app'): cmd[0] += '.app'
cmd = ['/usr/bin/open', '-a', cmd[0], '--args'] + cmd[1:]

if fullscreen: cmd.append('--fullscreen')
Expand Down
9 changes: 9 additions & 0 deletions osx/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http:https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
argv_emulation = False,
includes = 'cairo, pango, pangocairo, atk, gobject, gio',
iconfile = 'images/FAHControl.icns',
resources = ['/opt/local/share/themes'],
resources = ['/opt/local/share/themes', 'osx/entitlements.plist'],
plist = plist,
)

Expand Down