mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 19:50:47 +00:00
use a command wrapper for synctex
instead of an alternative child_process object
This commit is contained in:
parent
08a446f03d
commit
c5917d4a75
1 changed files with 3 additions and 2 deletions
|
@ -188,8 +188,9 @@ module.exports = CompileManager =
|
|||
_runSynctex: (args, callback = (error, stdout) ->) ->
|
||||
bin_path = Path.resolve(__dirname + "/../../bin/synctex")
|
||||
seconds = 1000
|
||||
synctex = Settings.clsi?.synctex?.command?(__dirname, child_process) || child_process
|
||||
synctex.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) ->
|
||||
if Settings.clsi?.synctexCommandWrapper?
|
||||
[bin_path, args] = Settings.clsi?.synctexCommandWrapper bin_path, args
|
||||
child_process.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) ->
|
||||
if error?
|
||||
logger.err err:error, args:args, "error running synctex"
|
||||
return callback(error)
|
||||
|
|
Loading…
Add table
Reference in a new issue