external player: Only run special .app login on darwin

This commit is contained in:
Feross Aboukhadijeh
2016-09-30 15:21:43 -07:00
committed by DC
parent fd1a1f0f7e
commit 44f621b4de

View File

@@ -48,7 +48,7 @@ function kill () {
function spawnExternal (playerPath, args) {
log('Running external media player:', playerPath + ' ' + args.join(' '))
if (path.extname(playerPath) === '.app') {
if (process.platform === 'darwin' && path.extname(playerPath) === '.app') {
// Mac: Use executable in packaged .app bundle
playerPath += '/Contents/MacOS/' + path.basename(playerPath, '.app')
}