fix for linux

This commit is contained in:
loicbersier 2019-07-17 23:37:49 +02:00
parent cb6971a95e
commit d170f06c91

View file

@ -52,7 +52,7 @@ class dectalkvcCommand extends Command {
});
} else if (process.platform == 'linux') {
exec(`wine dectalk/say.exe -w ../../dectalk.wav "${args.decMessage}"`)
exec(`cd dectalk && DISPLAY=:0.0 wine say.exe -w dectalk.wav "${args.decMessage}"`)
.catch(err => {
return console.error(err);
})