Browse Source

provide setting to override child_process.execFile for synctex

Brian Gough 10 years ago
parent
commit
f0c7b455a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/clsi/app/coffee/CompileManager.coffee

+ 2 - 1
services/clsi/app/coffee/CompileManager.coffee

@@ -174,7 +174,8 @@ module.exports = CompileManager =
 	_runSynctex: (args, callback = (error, stdout) ->) ->
 		bin_path = Path.resolve(__dirname + "/../../bin/synctex")
 		seconds = 1000
-		child_process.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) ->
+		synctex = Settings.clsi?.synctex?.command?(__dirname, child_process) || child_process
+		synctex.execFile bin_path, args, timeout: 10 * seconds, (error, stdout, stderr) ->
 			if error?
 				logger.err err:error, args:args, "error running synctex"
 				return callback(error)