Commit 9ad0f7d8 authored by Jack Jansen's avatar Jack Jansen

- Remove -psn-xxxx argument added by the Finder.

- "Open Document" appleevent is "odoc", not "open".
parent 0431bb41
......@@ -17,8 +17,11 @@ class ArgvCollector:
def __init__(self):
self.quitting = 0
self.ae_handlers = {}
# Remove the funny -psn_xxx_xxx argument
if sys.argv[0][:4] == '-psn':
del sys.argv[0]
self.installaehandler('aevt', 'oapp', self.open_app)
self.installaehandler('aevt', 'open', self.open_file)
self.installaehandler('aevt', 'odoc', self.open_file)
def installaehandler(self, classe, type, callback):
AE.AEInstallEventHandler(classe, type, self.callback_wrapper)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment