GNOME Bugzilla – Bug 567158
Tab names can't always be set via --title
Last modified: 2014-04-27 08:41:22 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-terminal/+bug/315301 "If I run gnome-terminal like this: cp ~/.bashrc ~/.bashrc-orig cp /etc/skel/.bashrc ~ gnome-terminal --active --title "Default" --tab --title "Bash" -e "bash" --tab --title "Emacs" -e "emacs" --tab --title "NoRC" -e "bash --norc" The third and fourth tabs show up named correctly, "Emacs" and "NoRC". If I append "unset PS1" to the end of the .bashrc, it makes all the tabs show up properly. Of course, then I only get the default command line prompts in the session. The expected behavior (IMHO) is that if --title is explicitly set on the command line, then it should be used preferentially to the prompt. My use case is I start up gnome-terminal from ~/.xsession pre-seeded with multiple tabs each running a different command, and I like to name each tab to differentiate them." Thanks,
What's the title mode setting in the profile preferences for the default profile ?
Created attachment 126122 [details] .bashrc
Gnome-terminal's profile preferences, not the .bashrc/.profile .
The problem I see is that if we set the title with the --title option and the title mode is "replace" (which I guess is the one the reporter uses), the user-defined title is replaced with a dynamic title as soon as an app sets one. That makes the --title option almost useless in that case. I think the title defined with the CLI option shouldn't be replaced if the mode is "replace".
But the whole point of the "replace" mode is that the title gets replaced by the dynamic title... What else will "replace" replace if not the original title? If the user needs the original title to stay there even if the app running in the terminal sets a new one, then "replace" should not be used.
No, my point was that once the user has defined a title (either with --title or the dialog), that title shouldn't be replaced (and in fact would only be replaced if the mode is "replace").
*** Bug 597128 has been marked as a duplicate of this bug. ***
Obsolete. Use escape sequences to set the title.