mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Use shell-env only for AppImages
This commit is contained in:
parent
b4eb535832
commit
cee275f61b
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ export default class Session extends EventEmitter {
|
|||
init({uid, rows, cols: columns, cwd, shell: _shell, shellArgs: _shellArgs}: SessionOptions) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const osLocale = require('os-locale') as typeof import('os-locale');
|
||||
const cleanEnv = shellEnv.sync(_shell || defaultShell);
|
||||
const cleanEnv =
|
||||
process.env['APPIMAGE'] && process.env['APPDIR'] ? shellEnv.sync(_shell || defaultShell) : process.env;
|
||||
const baseEnv = Object.assign(
|
||||
{},
|
||||
cleanEnv,
|
||||
|
|
|
|||
Loading…
Reference in a new issue