Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "twisted/internet/gtk2reactor.pyc", line 270, in run
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.5-py2.7.egg/deluge/ui/gtkui/menubar.py", line 312, in on_menuitem_open_folder_activate
component.get("SessionProxy").get_torrent_status(torrent_id, ["save_path"]).addCallback(_on_torrent_status)
File "twisted/internet/defer.pyc", line 297, in addCallback
'
File "twisted/internet/defer.pyc", line 286, in addCallbacks
chaining (associating two Deferreds with each other such that one
--- <exception caught here> ---
File "twisted/internet/defer.pyc", line 542, in _runCallbacks
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.5-py2.7.egg/deluge/ui/gtkui/menubar.py", line 310, in _on_torrent_status
deluge.common.open_file(status["save_path"])
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.5-py2.7.egg/deluge/common.py", line 245, in open_file
subprocess.Popen(["xdg-open", "%s" % path])
File "subprocess.pyc", line 679, in __init__
N(RbR?R[(RR?((ssubprocess.pycR??scCs|jtj?dS(s/Terminate the process with SIGTERM
File "subprocess.pyc", line 1228, in _execute_child
exceptions.OSError: [Errno 2] No such file or directory
Ah nice catch, as usual, using Deluge with a remote server, never noticed that one (which is disabled&hidden when using a remote server)
I guess it would be easy to do by calling OSX "open" instead of linux "xdg-open"... Yup that's it, works on my laptop. Fix will be in next release.
Waiting for this, you can edit /Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.5-py2.7.egg/deluge/common.py by replacing "xdg-open" by "open".
Cool. Thanks for the fix. I was wondering if there was a way of passing the file or folder to the open command instead of the download dir. Subsequently on osx when you call open you can specify -R arg to highlight the file you've asked for.
I modified the open to look like this in my common.py