terminal
terminal copied to clipboard
-t opens two tabs when no windows are open
Using the command io.elementary.terminal -t
opens two tabs if non are currently open.
To Reproduce
- Add custom keyboard shortcut for
io.elementary.terminal -t
in the settings app - Close all terminal windows
- Press shortcut
- 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
Platform Information
x I'm using the latest released stable version
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.
The same problem appears when open with --new-window
and --execute=<command>
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).
This may be the result of a recent commit #478
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.