diff --git a/fah/FAHControl.py b/fah/FAHControl.py index 5056d4f..223f5a8 100644 --- a/fah/FAHControl.py +++ b/fah/FAHControl.py @@ -1333,6 +1333,7 @@ class FAHControl(SingleAppServer): 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') diff --git a/osx/entitlements.plist b/osx/entitlements.plist new file mode 100644 index 0000000..29382ff --- /dev/null +++ b/osx/entitlements.plist @@ -0,0 +1,9 @@ + + + + + com.apple.security.cs.allow-unsigned-executable-memory + + + + diff --git a/setup.py b/setup.py index 8c17663..3fada6d 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ if sys.platform == 'darwin': 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, )