gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.39k stars 294 forks source link

Unable to create new session with split terminal #2025

Open skmagiik opened 3 years ago

skmagiik commented 3 years ago

tilix -a app-new-session -x "tilix -a session-add-right"

Expected behavior: Tilix opens a new session The new session adds a terminal to the right resulting in an additional terminal (split vertically).

Resulting behavior: Tilix opens a new session The new session (appears to) adds a terminal to the right. The session terminates.

End result goal I was attempting was a workspace launching script where I could prepare a workspace. Attempted command is below: tilix -a app-new-session -x "tilix -a session-add-right; ssh HOSTNAME -t \"cd /path/to/workspace; bash --login\"" The following works as expected: tilix -a app-new-session -x "ssh HOSTNAME -t \"cd /path/to/workspace; bash --login\""

I was hoping to find more "terminal navigation" commands to automate creating/scripting multiple terminals or sessions from the initial launch script.

vfaronov commented 3 years ago

The -x option tells Tilix to execute the specified command instead of your shell. Once that command finishes (and tilix -a session-add-right finishes quickly), the terminal is destroyed.

Try simply:

tilix -a app-new-session && tilix -a session-add-right -x "ssh ..."

— seems to work for me.