mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-03 18:05:58 -05:00
Added PATH and LANG env variable to terminal, using parent, if defined.
This commit is contained in:
parent
6314a62258
commit
189941bd44
@ -1949,7 +1949,10 @@ function onTunnelData(data) {
|
||||
var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login';
|
||||
|
||||
var env = { HISTCONTROL: 'ignoreboth' };
|
||||
if (this.httprequest.xoptions) {
|
||||
if (process.env['LANG']) { env['LANG'] = process.env['LANG']; }
|
||||
if (process.env['PATH']) { env['PATH'] = process.env['PATH']; }
|
||||
if (this.httprequest.xoptions)
|
||||
{
|
||||
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
||||
if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); }
|
||||
}
|
||||
|
@ -979,7 +979,10 @@ require('MeshAgent').AddCommandHandler(function (data) {
|
||||
}
|
||||
else {
|
||||
var env = { HISTCONTROL: 'ignoreboth' };
|
||||
if (this.httprequest.xoptions) {
|
||||
if (process.env['LANG']) { env['LANG'] = process.env['LANG']; }
|
||||
if (process.env['PATH']) { env['PATH'] = process.env['PATH']; }
|
||||
if (this.httprequest.xoptions)
|
||||
{
|
||||
if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); }
|
||||
if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user