Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🚑 Hotfix v2.2.1 - Fix handling of shell args #492
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Apr 30, 2019
1 parent 2eb00ce commit a1114d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "edex-ui",
"productName": "eDEX-UI",
"version": "2.2.0",
"version": "2.2.1",
"description": "A science fiction desktop running everywhere. Awesome.",
"keywords": [
"desktop",
Expand Down
2 changes: 1 addition & 1 deletion src/_boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ app.on('ready', async () => {
if (!require("fs").existsSync(settings.cwd)) throw new Error("Configured cwd path does not exist.");

// See #366
let cleanEnv = await require("shell-env")(settings.shell).catch(e => { throw e; });
let cleanEnv = await require("shell-env")(settings.shell.split(" ")[0]).catch(e => { throw e; });

Object.assign(cleanEnv, process.env, settings.env, {
TERM: "xterm-256color",
Expand Down
2 changes: 1 addition & 1 deletion src/classes/terminal.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class Terminal {
}
}, 1000);

this.tty = this.Pty.spawn(opts.shell || "bash", opts.params || ["--login"], {
this.tty = this.Pty.spawn(opts.shell || "bash", (opts.params.length > 0 ? opts.params : ["--login"]), {
name: "xterm-256color",
cols: 80,
rows: 24,
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "edex-ui",
"productName": "eDEX-UI",
"version": "2.2.0",
"version": "2.2.1",
"description": "eDEX-UI sci-fi interface",
"keywords": [
"desktop",
Expand Down

0 comments on commit a1114d9

Please sign in to comment.