GitSquared / edex-ui

A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.
GNU General Public License v3.0
40.35k stars 2.54k forks source link

Regarding: #1134 #1139

Closed davidjsullivan8 closed 2 years ago

davidjsullivan8 commented 3 years ago

Technical information

Using version:

Running on:

How comfortable you are with your system and/or IT in general:


I'm unable to add additional comments to #1134. I opened the config file:
file:///home/david/.local/share/applications/appimagekit-edex-ui.desktop with Gedit and changed Terminal from false to True: [Desktop Entry] Name=eDEX-UI Comment=eDEX-UI sci-fi interface Exec="/home/david/eDEX-UI.Linux.x86_64.AppImage" %U Terminal=true Type=Application Icon=appimagekit-edex-ui StartupWMClass=eDEX-UI X-AppImage-Version=2.2.2.1702 Categories=System; X-AppImage-BuildId=1LSbIGfaJgjbUvMW2DgU2trL8r0 X-Desktop-File-Install-Version=0.24 X-AppImage-Comment=Generated by /tmp/.mount_eDEX-UJr2D9i/AppRun TryExec=/home/david/eDEX-UI.Linux.x86_64.AppImage

I then rebooted and launched eDex. Got the following reply from terminal: e▶ start Starting eDEX-UI v2.2.2 ℹ info With Node 10.11.0 and Electron 4.2.0 ℹ info Renderer is Chrome 69.0.3497.128 ▶ Startup Initialized timer... ℹ info Base config dir is /home/david/.config/eDEX-UI dex☐ pending Loading settings file... ✔ success Settings loaded! (node:8155) UnhandledPromiseRejectionWarning: Error: Command failed: terminator -ilc echo -n "_SHELL_ENVDELIMITER"; env; echo -n "_SHELL_ENVDELIMITER"; exit Usage: terminator [options]

terminator: error: Additional unexpected arguments found: ['echo -n "_SHELL_ENVDELIMITER"; env; echo -n "_SHELL_ENVDELIMITER"; exit']

at makeError (/tmp/.mount_eDEX-UiKQ53N/resources/app.asar/node_modules/shell-env/node_modules/execa/index.js:174:9)
at Promise.all.then.arr (/tmp/.mount_eDEX-UiKQ53N/resources/app.asar/node_modules/shell-env/node_modules/execa/index.js:278:16)
at process._tickCallback (internal/process/next_tick.js:68:7)

(node:8155) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:8155) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

image

Do you have any further recommendations? Thanks so much for the help.

GitSquared commented 3 years ago

This is from here: https://github.com/GitSquared/edex-ui/blob/c5f1948f86e6913a3c62fcfc957c3c33da231352/src/_boot.js#L234

sindresorhus/shell-env is a little tool that tries running a command with the shell it's provided to get what your env vars are in that environment:

https://github.com/sindresorhus/shell-env/blob/b60d531b00194e1edd6399d7a25757ea90aa5916/index.js#L6-L9

You seem to have set Terminator as the shell option for eDEX, but Terminator is not a shell, it is a terminal emulator (like edex itself). This is why it doesn't understand the flags shell-env tries to feed it.

You should set a shell in edex options. Examples of shell includes bash, zsh, fish, and many more - if you're unsure what to pick, bash is the default in many distros including ubuntu.

davidjsullivan8 commented 3 years ago

You are correct. I made the mistake of changing the shell from bash to Terminator. I can't access the settings to change it back. I'd love to change it back to bash, but I don't know how to do it. Apologies. I have zero programming skills. Thanks for the help.

Animus-Surge commented 3 years ago

If you navigate to the ~/.local/share folder either in bash or in the file browser, there should be a folder called edex-ui (or something of the sort). In there should be the settings.json file, in which you can change the terminal back to bash.

GitSquared commented 3 years ago

That's right! But on Linux, you should look in ~/.config.