Skip to content

Commit

Permalink
Handle magnet URLs in macOS
Browse files Browse the repository at this point in the history
This is dependent on a patch  to gtk-mac-integration/GTKOSXApplication (MR already sent upstream)
  • Loading branch information
Lord-Kamina committed May 21, 2020
1 parent 37adbe5 commit d68d1c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions deluge/ui/gtk3/gtkui.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def nsapp_open_file(osxapp, filename):
process_args([filename])

self.osxapp.connect('NSApplicationOpenFile', nsapp_open_file)
self.osxapp.connect('NSApplicationOpenURLs', nsapp_open_file)
from .menubar_osx import menubar_osx

menubar_osx(self, self.osxapp)
Expand Down
11 changes: 11 additions & 0 deletions packaging/osx/Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,16 @@
</array>
</dict>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>BitTorrent Magnet URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>magnet</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit d68d1c4

Please sign in to comment.