From 936612c91348b9493d2185939b6b9232c84766ea Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 3 Feb 2018 05:01:27 +0300 Subject: [PATCH] fix(linux): options on start --- src/background/background.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/background/background.js b/src/background/background.js index be59462..bd40789 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -168,7 +168,12 @@ const startSphinx = (callback) => { writeSphinxConfig(sphinxConfigDirectory) const config = `${sphinxConfigDirectory}/sphinx.conf` - sphinx = spawn(sphinxPath, ['--config', config]) + const options = ['--config', config] + if(process.platform === 'linux') + { + options.push('--nodetach') + } + sphinx = spawn(sphinxPath, options) sphinx.stdout.on('data', (data) => { console.log(`sphinx: ${data}`)