Skip to content

Commit

Permalink
fix(linux): options on start
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Feb 4, 2018
1 parent 0c60c0d commit a069a0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit a069a0e

Please sign in to comment.