Merge pull request #89 from kbernhagen/macos-add-entitlements
Add entitlements
This commit is contained in:
commit
7016206a9e
@ -1333,6 +1333,7 @@ class FAHControl(SingleAppServer):
|
|||||||
if not (len(cmd) and len(cmd[0])): cmd = ['FAHViewer']
|
if not (len(cmd) and len(cmd[0])): cmd = ['FAHViewer']
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
|
if not cmd[0].endswith('.app'): cmd[0] += '.app'
|
||||||
cmd = ['/usr/bin/open', '-a', cmd[0], '--args'] + cmd[1:]
|
cmd = ['/usr/bin/open', '-a', cmd[0], '--args'] + cmd[1:]
|
||||||
|
|
||||||
if fullscreen: cmd.append('--fullscreen')
|
if fullscreen: cmd.append('--fullscreen')
|
||||||
|
9
osx/entitlements.plist
Normal file
9
osx/entitlements.plist
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://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
setup.py
2
setup.py
@ -50,7 +50,7 @@ if sys.platform == 'darwin':
|
|||||||
argv_emulation = False,
|
argv_emulation = False,
|
||||||
includes = 'cairo, pango, pangocairo, atk, gobject, gio',
|
includes = 'cairo, pango, pangocairo, atk, gobject, gio',
|
||||||
iconfile = 'images/FAHControl.icns',
|
iconfile = 'images/FAHControl.icns',
|
||||||
resources = ['/opt/local/share/themes'],
|
resources = ['/opt/local/share/themes', 'osx/entitlements.plist'],
|
||||||
plist = plist,
|
plist = plist,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user