SmartFinn / eve-ng-integration

integrates EVE-NG (aka UNetLab) with Linux desktop
http://git.io/eve-ng-integration
MIT License
322 stars 117 forks source link

Unable to find a shell with Terminator #33

Closed SanderDelden closed 4 years ago

SanderDelden commented 4 years ago

I'm running Terminator 1.91 and running in to the issue using both Firefox & Chrome. When starting a session on EVE-NG it just opens a Terminator screen showing Unable to find a shell

Please let me know if any additional information/logging should be provided

SmartFinn commented 4 years ago

Do you use Debian-based distro? Do you set Terminator as default for your session or edit eve-ng-integration/eve-ng-integration.desktop file?

Is this x-terminal-emulator -e telnet route-server.he.net command opens Terminator with telnet session?

SanderDelden commented 4 years ago

Yes I'm running Ubuntu 18.04. Terminator is my default terminal. The command opens Terminator and connects to the Telnet host without anny issues.

Edit: The following is shown when running the command to start the Telnet session: ** (x-terminal-emulator:9149): WARNING **: 15:37:56.244: Binding '<Control><Alt>a' failed! Unable to bind hide_window key, another instance/window has it.

However Terminator still opens the Telnet session as expected

SmartFinn commented 4 years ago

Terminator has weird behavior when it is launched as x-terminal-emulator:

-e, --command=COMMAND
       Runs  the specified command instead of your default shell or profile specified com‐
       mand. Note: if Terminator is launched as x-terminal-emulator -e  behaves  like  -x,
       and the longform becomes --execute2=COMMAND

To override it run the following commands:

mkdir -p ~/.local/share/applications/
cp -f /usr/share/applications/eve-ng-integration.desktop ~/.local/share/applications/
sed -i 's/^Exec=/&env OVERRIDE_TERMINAL_CMD="terminator -e" /' ~/.local/share/applications/eve-ng-integration.desktop
SanderDelden commented 4 years ago

Unfortunately this does not work, now no Terminator window is openend

SmartFinn commented 4 years ago

Check ~/.local/share/applications/eve-ng-integration.desktop file, it should contains:

[Desktop Entry]
Name=EVE-NG Integration
Exec=env OVERRIDE_TERMINAL_CMD="terminator -e" eve-ng-integration %u
TryExec=eve-ng-integration
Type=Application
Categories=Network;
MimeType=x-scheme-handler/telnet;x-scheme-handler/capture;x-scheme-handler/docker;
X-KDE-Protocols=telnet,capture,docker
NoDisplay=true

Also, see and run commands from Click on a node does not open an app (opens another app) in all browsers

SanderDelden commented 4 years ago

This worked, thank you for the help!