diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2016-07-20 20:31:34 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2016-07-20 20:31:40 +0100 |
commit | e66be42c81ca5e41b3bee88bf21db523bee8397f (patch) | |
tree | 51d2ba9438e1c73ddfc4481fe76860f6341c805e | |
parent | 226346311412c164cfb5e467d04b1ee8627bc015 (diff) | |
download | deluge-e66be42c81ca5e41b3bee88bf21db523bee8397f.tar.gz deluge-e66be42c81ca5e41b3bee88bf21db523bee8397f.tar.bz2 deluge-e66be42c81ca5e41b3bee88bf21db523bee8397f.zip |
[#2768] [GTKUI] [OSX] Fix invalid file error at startup
When installed to the system, not using .app, error is raised on startup
as nsapp_open_file is ignoring Deluge-bin but not deluge or deluge-gtk for
potential 'filename' when connecting NSApplicationOpenFile.
-rw-r--r-- | deluge/ui/gtkui/gtkui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 8c38c0eeb..cd6fcc819 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -268,8 +268,8 @@ class GtkUI(object): if deluge.common.osx_check() and gtk.gdk.WINDOWING == "quartz": def nsapp_open_file(osxapp, filename): - # Will be raised at app launch (python opening main script) - if filename.endswith('Deluge-bin'): + # Ignore command name which is raised at app launch (python opening main script). + if filename == sys.argv[0]: return True from deluge.ui.gtkui.ipcinterface import process_args process_args([filename]) |