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'] = [{
|
infoPlist['CFBundleDocumentTypes'] = [{
|
||||||
CFBundleTypeExtensions: [ 'torrent' ],
|
CFBundleTypeExtensions: [ 'torrent' ],
|
||||||
|
CFBundleTypeIconFile: 'WebTorrentFile.icns',
|
||||||
CFBundleTypeName: 'BitTorrent Document',
|
CFBundleTypeName: 'BitTorrent Document',
|
||||||
CFBundleTypeRole: 'Editor',
|
CFBundleTypeRole: 'Editor',
|
||||||
CFBundleTypeIconFile: 'WebTorrentFile.icns'
|
LSHandlerRank: 'Owner',
|
||||||
|
LSItemContentTypes: [ 'org.bittorrent.torrent' ]
|
||||||
}]
|
}]
|
||||||
|
|
||||||
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
fs.writeFileSync(infoPlistPath, plist.build(infoPlist))
|
||||||
|
|||||||
Reference in New Issue
Block a user