Linux: Register .torrent file/magnet link handlers

This commit is contained in:
Feross Aboukhadijeh
2016-03-20 03:19:32 -07:00
parent 5cb0e6940f
commit 9f46da5477
4 changed files with 43 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ module.exports = {
IS_PRODUCTION: isProduction(),
STATIC_PATH: pathToStatic(),
SOUND_ADD: 'file://' + path.join(__dirname, 'static', 'sound', 'add.wav'),
SOUND_DELETE: 'file://' + path.join(__dirname, 'static', 'sound', 'delete.wav'),
SOUND_DISABLE: 'file://' + path.join(__dirname, 'static', 'sound', 'disable.wav'),
@@ -36,7 +38,7 @@ function isProduction () {
return !/\\electron\.exe$/.test(process.execPath)
}
if (process.platform === 'linux') {
// TODO
return !/\/electron$/.test(process.execPath)
}
}