terminal icon indicating copy to clipboard operation
terminal copied to clipboard

-t opens two tabs when no windows are open

Open GammaGames opened this issue 4 years ago • 5 comments

Using the command io.elementary.terminal -t opens two tabs if non are currently open.

To Reproduce

  1. Add custom keyboard shortcut for io.elementary.terminal -t in the settings app
  2. Close all terminal windows
  3. Press shortcut
  4. Notice there are two tabs

Expected behavior

If there is currently no open terminal, it should just create the single window with the single tab

Screenshots or screen recordings

Screen record from 2020-04-03 11 35 47

Platform Information

image

x I'm using the latest released stable version

GammaGames avatar Apr 03 '20 17:04 GammaGames

Maybe related to #356 too, but different in that right clicking a folder and opening it in terminal opens one tab in your home directory and the second tab in the target directory.

GammaGames avatar Apr 03 '20 17:04 GammaGames

The same problem appears when open with --new-window and --execute=<command>

t0suj4 avatar Jan 04 '21 14:01 t0suj4

On elementary 6.0 I am getting two extra tabs :disappointed: when io.elementary.terminal -t is launched with a custom shortcut. But only one extra tab when launched from the commandline (of a different app).

jeremypw avatar Jan 04 '21 18:01 jeremypw

This may be the result of a recent commit #478

jeremypw avatar Jan 04 '21 18:01 jeremypw

Weirdly, launching e.g. io.elementary.terminal -w ~/Documents with a custom shortcut also opens three tabs - all at ~ not ~/Documents. Launching the same command from e.g. xterm opens a single tab at ~/Documents as expected.

So there seems something amiss with the way custom shortcuts work with Terminal.

jeremypw avatar Jan 04 '21 19:01 jeremypw