Skip to content

Commit

Permalink
use spawn with current stdio to exec omx
Browse files Browse the repository at this point in the history
this allows to have omx keyboard shortcuts working
  • Loading branch information
manuhabitela committed Aug 10, 2015
1 parent 54c642d commit 0fc7513
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ if (argv._.length > 1) {

var noop = function () {}

var spawn = function (commandString) {
var parts = commandString.split(/\s+/g)
proc.spawn(parts[0], parts.slice(1), { stdio: 'inherit' })
}

var ontorrent = function (torrent) {
if (argv['peer-port']) argv.peerPort = Number(argv['peer-port'])

Expand Down Expand Up @@ -264,7 +269,7 @@ var ontorrent = function (torrent) {

if (argv.omx) {
player = 'omx'
proc.exec(OMX_EXEC + ' ' + localHref)
spawn(OMX_EXEC + ' ' + localHref)
}
if (argv.mplayer) {
player = 'mplayer'
Expand Down

0 comments on commit 0fc7513

Please sign in to comment.