OS X: Register app as owner of .torrent files
Saw these keys/values in Transmission’s Info.plist.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user