Regression in --tab and --window behaviour
My Fedora 35 system recently updated to xfce4-terminal (xfce4-terminal-1.0.0-1.fc35.x86_64). I noticed a script I've been using for a while which launches a terminal with a collection of pre-configured tabs no longer works as it used to (tabs didn't open in a new window, and appended tabs to existing window). I found a release note blog which listed an improvement "The '--tab' and '--window' command line arguments have been reworked to be more intuitive" so I went back to the documentation to update my script to the new behaviour. However I've not been able to solve this so far and find the new behaviour less intuitive so far as a basic example doesn't work now. Apologies in advance if this is the wrong place to log this.
Similar to and related to issue #13 (closed)
Use case: shell script to open a single terminal window, with multiple tabs of varying configuration (working directory, tab title, running command).
Allow me to expand the examples in the documentation to aid explanation.
Section Window or Tab Separators where the examples are: "Examples (at least one terminal window is open)"
(existing 3 examples work as documented, so following on are new examples)
xfce4-terminal --tab --window --tab
a tab is added to the existing active terminal window and a new window with 2 tabs is created. This is based on the behaviour of the previous example and just adds a extra tab to the new window.
xfce4-terminal --window
a new window with a 1 tab is created
Note: this is the same result as running xfce4-terminal without --window, perhaps this should actually open two new single tab windows?
xfce4-terminal --window --tab
expected> a new window with 2 tabs is created (based on the behaviour of --window alone, and on what --tab --window --tab does)
actual> a new window with 1 tab and another new window with 2 tabs is created (leads to alternate expectation for --window alone mentioned above)
It looks like anything before the --window gets sent to the first new window, and anything after goes to the second. That does make sense.
Example: xfce4-terminal --window --title=one --tab --title=two
both named tabs are in the second new window, if you set a title before --window it will be the title of the first new window.
My current workaround is to update the script to open a new window and then I have a spare window I can close as it's not required. So possibly this is a regression in behaviour, or some additional documentation might help out.
Original script: (Simplified) - opens a single NEW window with 4 tabs. (now this adds 3 tabs to current window, the first new tab has the ssh command, and the title of the next tab "app1")
xfce4-terminal --geometry 189x73 \
--hold --command="ssh hostname" --title=servername --active-tab --tab \
--working-directory=/app/path1 --title=app1 --tab \
--working-directory=/app/path2 --title=app2 --tab \
--hold --command="top" --title=top
Workaround: (Simplified) - opens 2 new windows, one with just a shell, and one with the 4 tabs I wanted
xfce4-terminal --window --geometry 189x73 \
--hold --command="ssh hostname" --title=servername --active-tab --tab \
--working-directory=/app/path1 --title=app1 --tab \
--working-directory=/app/path2 --title=app2 --tab \
--hold --command="top" --title=top