Bug#746204: gnome-terminal: -t/--title command line ignored
Vincent Lefevre
vincent at vinc17.net
Sun Dec 30 00:00:16 GMT 2018
On 2015-01-19 21:06:22 +0000, Simon McVittie wrote:
> Control: tags 746204 + upstream wontfix
>
> On Mon, 28 Apr 2014 at 11:03:33 +0900, Norbert Preining wrote:
> > since the step to 3.12 gnome-terminal ignores any
> > -t
> > --title
> > option.
>
> This appears to be a deliberate upstream change: setting the title via
> configuration is no longer supported, because users complained that
> the title from menu configuration or the command-line ("static title")
> was in practice usually overwritten by the one set by the ESC]0;...\a
> escape sequence ("dynamic title"). This changed between 3.10 and 3.12.
Well, it seems that they have reverted the change since -t / --title
is currently working correctly: If I run
gnome-terminal -t foo -- sleep 10
or
gnome-terminal --title foo -- sleep 10
I get a window with the title "foo".
> The suggested solution is to use the escape sequence in your shell
> prompt (e.g. $PS1), or ensure that /etc/profile.d/vte-2.91.sh is
> sourced (it sets up a PROMPT_COMMAND suitable for gnome-terminal's
> terminal emulation library).
But one does not necessarily use a shell (see above), and this would
need a wrapper to start a shell in order to send the escape sequence
before running the command... So, it is great that the option is
working now.
And even when one uses a shell, having an initial title (before it
is changed by the shell) may be useful for the window manager, to
have different behaviors depending on this title.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-gnome-maintainers
mailing list