GNOME Bugzilla – Bug 576920
title command line option order is significant
Last modified: 2009-04-12 10:41:52 UTC
gnome-terminal --title=foo --geometry=190x30 --window-with-profile=taillog --command 'ssh pse03 taillog.py' will spawn a window of the right geometry. Then it will name that window "foo" promptly changed to "vincentd@psedev1: ~/Code" then it spawns a second "default" sized terminal (ignoring my geometry I specified), using the "taillog" profile and runs the taillog.py script within it. However, and this is the part that's amusing... gnome-terminal --geometry=190x30 --window-with-profile=taillog --command 'ssh pse03 taillog.py' --title=foo works exactly right (note that 'title' is now on the end, AFTER the --window... command I suspect is the key here) LOL! get it! the order of the commands matters! HAHAH! (yet nowhere does the documentation mention this, nor is this even remotely expected behavior) *rolls eyes*
The meaning of what you wrote depends critically on what you mean by "[it] works exactly right"... Most command line options affect the "current window/tab" being described, except those that create new windows and tabs. Your first example starts with an implicit "create a window" command line argument, then tells the app to put a specific title on it (which *after* the window is shown is changed by the bash instance running in it: g-t cannot do much about this...), and of a specific geometry; the following --window-with-profile tells g-t that a new window follows, and the only thing being told to it is that is should be running a certain command (but you did not day anything about what geometry or title you want on this second window) In conclusion: the order of the command line arguments does matter, and it is expected that it does. Maybe the docs should be more emphatic about it, I guess...
Command line option order matters, yes. --help-all also clearly explains this in g-t 2.26.0 . Bug 311565 is about adding a manpage which would explain this in detail; marking as dup. *** This bug has been marked as a duplicate of 311565 ***