Well, I found what the cause of the problem is in my particular case. On
the following diff between /etc/skel/.bashrc and ~/.bashrc, which I
attached some days ago, the bug disappears when I uncomment the line:

PROMPT_COMMAND='history -a'

@@ -70,3 +70,13 @@
 if [ -f /etc/bash_completion ]; then
     . /etc/bash_completion
 fi
+
+# Append entries to the history file for each new shell
+shopt -s histappend
+# The contents of this variable are executed as a regular Bash command 
+# just before Bash displays a prompt. This appends the history entries 
+# for all open shells
+PROMPT_COMMAND='history -a'
+
+# Export the local repository root
+export CVSROOT=/home/dpm/cvsrepo

After doing that, I no longer get a static "Terminal" title bar text,
but it gets updated with the output of the current command as expected.
So the vim thing was just a red herring, I believe.

What was happening, I think, was that on the initial launch of gnome-
terminal, the title bar was not being set and the "Terminal" default was
being used. When using vim, it set the titlebar text to the name of the
file being edited, and when exiting vim, the title bar was updated to
nothing.

So this is either a problem with bash or gnome-terminal, I think. But
considering that Santiago is using zsh and also experiencing this
problem, I'd be more inclined to think that this is a problem with
gnome-terminal.

IIRC, on Dapper gnome-terminal was not showing this problem. I might try
later on with a Dapper LiveCD if this was the case.


** Changed in: gnome-terminal (Ubuntu)
       Status: Needs Info => Unconfirmed

-- 
gnome-terminal window loses title
https://launchpad.net/bugs/60341

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to