mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
[#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.
This commit is contained in:
parent
2263463114
commit
e66be42c81
1 changed files with 2 additions and 2 deletions
|
@ -268,8 +268,8 @@ class GtkUI(object):
|
||||||
|
|
||||||
if deluge.common.osx_check() and gtk.gdk.WINDOWING == "quartz":
|
if deluge.common.osx_check() and gtk.gdk.WINDOWING == "quartz":
|
||||||
def nsapp_open_file(osxapp, filename):
|
def nsapp_open_file(osxapp, filename):
|
||||||
# Will be raised at app launch (python opening main script)
|
# Ignore command name which is raised at app launch (python opening main script).
|
||||||
if filename.endswith('Deluge-bin'):
|
if filename == sys.argv[0]:
|
||||||
return True
|
return True
|
||||||
from deluge.ui.gtkui.ipcinterface import process_args
|
from deluge.ui.gtkui.ipcinterface import process_args
|
||||||
process_args([filename])
|
process_args([filename])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue