mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 15:03:25 +03:00
Fixed MeshCore.js for XTerm.
This commit is contained in:
parent
49ead97d9e
commit
e9ebb8aa20
@ -1230,19 +1230,6 @@ function createMeshCore(agent) {
|
||||
var bash = fs.existsSync('/bin/bash') ? '/bin/bash' : false;
|
||||
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
|
||||
var script = false;
|
||||
<<<<<<< HEAD
|
||||
/*
|
||||
try {
|
||||
if (require('linux-gnome-helpers').scriptVersion) {
|
||||
if (require('linux-gnome-helpers').scriptVersion.major > 2 ||
|
||||
(require('linux-gnome-helpers').scriptVersion.major == 2 && require('linux-gnome-helpers').scriptVersion.minor >= 25)) {
|
||||
script = '/usr/bin/script';
|
||||
}
|
||||
}
|
||||
} catch (ex) { }
|
||||
*/
|
||||
var python = false; //fs.existsSync('/usr/bin/python') ? '/usr/bin/python' : false;
|
||||
=======
|
||||
if (this.httprequest.xoptions.script)
|
||||
{
|
||||
try
|
||||
@ -1258,7 +1245,6 @@ function createMeshCore(agent) {
|
||||
} catch (ex) { }
|
||||
}
|
||||
var python = (this.httprequest.xoptions.python && fs.existsSync('/usr/bin/python')) ? '/usr/bin/python' : false;
|
||||
>>>>>>> d44a88113778814efbc291357c3fe6cf1330bca5
|
||||
var shell = bash || sh;
|
||||
|
||||
var env = { HISTCONTROL: 'ignoreboth', TERM: 'xterm' };
|
||||
|
Loading…
Reference in New Issue
Block a user