From 33a9e7e93dc0f87dfc0528f791b419b683da1c1b Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 19 Mar 2016 01:45:11 -0700 Subject: [PATCH] OS X: Register app as owner of .torrent files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Saw these keys/values in Transmission’s Info.plist. --- bin/package.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/package.js b/bin/package.js index e9be096b..d8f875b8 100755 --- a/bin/package.js +++ b/bin/package.js @@ -156,9 +156,11 @@ function postDarwinism () { infoPlist['CFBundleDocumentTypes'] = [{ CFBundleTypeExtensions: [ 'torrent' ], + CFBundleTypeIconFile: 'WebTorrentFile.icns', CFBundleTypeName: 'BitTorrent Document', CFBundleTypeRole: 'Editor', - CFBundleTypeIconFile: 'WebTorrentFile.icns' + LSHandlerRank: 'Owner', + LSItemContentTypes: [ 'org.bittorrent.torrent' ] }] fs.writeFileSync(infoPlistPath, plist.build(infoPlist))