Remove sudo from mpg321 call
We'll just run the parent process as root.
This commit is contained in:
parent
1f27a94c35
commit
0988d59529
@ -1,7 +1,7 @@
|
||||
const glob = require('glob');
|
||||
const spawn = require('child_process').spawn;
|
||||
const tag_reader = spawn('/home/annika/rfid/run-tag-reader');
|
||||
const player = spawn('/usr/bin/sudo', ['-n', '/usr/bin/mpg321', '-R', '-']);
|
||||
const player = spawn('/usr/bin/mpg321', ['-R', '-']);
|
||||
|
||||
tag_reader.on('error', function(err) {
|
||||
console.log(`[tag_reader:error] ${err}`);
|
||||
|
Loading…
Reference in New Issue
Block a user