Skip to content

"xfce4-terminal --tab" opens a window with two tabs

Submitted by felix

Assigned to Nick Schermer

Link to original bug (#12451)

Description

If xfce4-terminal is already running, executing "xfce4-terminal --tab" adds one tab to an existing window. If it's not running, a terminal window with two tabs is created. Adding more "--tab" options creates a window with one more tab than the number of "--tab" options specified.

Combining "--tab" with "--window" results in even more bizarre behaviour; for example, if xfce4-terminal is not running, "xfce4-terminal --tab --window" opens one window with two tabs and another with one tab. If xfce4-terminal is running, it opens two new windows, one tab each; existing windows are not touched.

Expected behaviour: xfce4-terminal opens the same number of sessions depending only on the command line options given, regardless of whether there is already an xfce4-terminal window open. Preferably something like this:

If neither a "--tab" nor a "--window" option is given, open one new window with one tab.

For "--tab" options given before any "--window" options, open as many new tabs as there are "--tab" options in an existing window if there is one, otherwise open a new window with that many tabs.

If a "--window" option is encountered, open a new window with one tab; for each subsequent "--tab", add a new tab to this window.

Version: 0.6.2