Created attachment 8772 This shows the setting that is not working. My default shell is Bash, and I have the following at the end of my ~/.bashrc file. case "$TERM" in xterm*|rxvt*) trap 'echo -ne "\e]0;$BASH_COMMAND\007"' DEBUG ;; *) ;; esac This shows the last command run as the terminal title on the window button and for the window title. In Debian 9.9, xfce4-terminal (0.8.3-1), the Preferences > General > 'Dynamically-set title: Replaces initial title' option works. In Debian 9.9, initially the word 'Terminal' shows in the title bar and window button. Then of course this title changes after the first command is run. However, in 0.8.7.4 (Debian 10), it shows 'Untitled window' on the window button and the title bar is blank until my first command is run. Screenshot attached. The same issue exists in Xubuntu 19.04 with the Xfce 4.14 pre-release ppa enabled. Thank you! I very much appreciate Xfce.
Here is my workaround in the meantime: ~$ tail -1 .bashrc Terminal ~$ cat bin/Terminal #!/bin/bash I created an empty script titled 'Terminal' and placed it in my $PATH. Then I run this script as the last line of my ~/.bashrc file.
I ended up putting my empty script in /usr/bin instead because ~/.bashrc loads before ~/.profile when running bash -l or when logging in in a tty, and it reports command not found. My ~/bin directory is added to my path on login in my ~/.profile.
Hi Brock, can this bug report be closed?
I’m actually having this same issue by default on two different machines. Is there some debug/info I could provide? I didn’t try the reporting user’s proposed hotfix yet but I can report back later with findings.
@Igor The workaround basically takes care of it, but it would be nice if it could still be fixed. I do not know though how much troubleshooting would be needed, and I know time is limited. Thanks
(In reply to Igor from comment #3) > Hi Brock, can this bug report be closed? I'm actually having this same issue and I could provide any additional information you may need. (In reply to jpisaniello from comment #4) > I’m actually having this same issue by default on two different machines. Is > there some debug/info I could provide? I didn’t try the reporting user’s > proposed hotfix yet but I can report back later with findings. I ended up trying the hotfix and it did not fix the broken functionality of dynamically set titles.
Hi Brock, jorp, a couple of questions: 1. Do you have "Initial title" set in Preferences? 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial title" to "%w", what do you see in the window title?
Hello Igor, (In reply to Igor from comment #7) > Hi Brock, jorp, a couple of questions: > > 1. Do you have "Initial title" set in Preferences? Yes, right now it's set to 'Terminal', which I believe is the default. > 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial title" to "%w", what do you see in the window title? Before changing this setting, the title is always: 'user@hostname', which is what I also see after changing this setting. Is there any debugging I could do anywhere? I should mention that I'm using the Fedora 30 xfce spin and xfce4-terminal 0.8.8 (Xfce 4.14). I am unable to replicate this on another machine (also Fedora 30 xfce spin, with the same version terminal). I've tried copying the configs from that machine, but alas, still the static title. Let me know how I can be of further help.
(In reply to jorp from comment #8) > > 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial title" to "%w", what do you see in the window title? > Before changing this setting, the title is always: 'user@hostname', which is > what I also see after changing this setting. Sorry but now I'm confused. The OP is saying that dynamic title isn't working for him, and he sees "Untitled" instead (which indeed should only be shown when the terminal fails to get a title). You, on the other hand, are saying that you're seeing 'user@hostname' as a dynamic title. What is the problem for you, then? > Is there any debugging I could do anywhere? I should mention that I'm using > the Fedora 30 xfce spin and xfce4-terminal 0.8.8 (Xfce 4.14). > > I am unable to replicate this on another machine (also Fedora 30 xfce spin, > with the same version terminal). I've tried copying the configs from that > machine, but alas, still the static title. > > Let me know how I can be of further help. xfce4-terminal gets the dynamic title from vte. I don't know why the behavior would be different on two machines running the same Fedora version but you might want to read a little write-up that might be helpful: https://gnunn1.github.io/tilix-web/manual/vteconfig/
(In reply to Igor from comment #9) > (In reply to jorp from comment #8) > > > 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial title" to "%w", what do you see in the window title? > > Before changing this setting, the title is always: 'user@hostname', which is > > what I also see after changing this setting. > Sorry but now I'm confused. > The OP is saying that dynamic title isn't working for him, and he sees > "Untitled" instead (which indeed should only be shown when the terminal > fails to get a title). > You, on the other hand, are saying that you're seeing 'user@hostname' as a > dynamic title. What is the problem for you, then? Sorry maybe this bug report wasn't appropriate then. For me, the title is never replaced no matter what is running. For example, running `htop` will replace the title as "htop" on systems where I do not encounter what I think is a bug. With the issue I'm experiencing, it is always 'user@hostname'. > > > Is there any debugging I could do anywhere? I should mention that I'm using > > the Fedora 30 xfce spin and xfce4-terminal 0.8.8 (Xfce 4.14). > > > > I am unable to replicate this on another machine (also Fedora 30 xfce spin, > > with the same version terminal). I've tried copying the configs from that > > machine, but alas, still the static title. > > > > Let me know how I can be of further help. > xfce4-terminal gets the dynamic title from vte. I don't know why the > behavior would be different on two machines running the same Fedora version > but you might want to read a little write-up that might be helpful: > https://gnunn1.github.io/tilix-web/manual/vteconfig/ Hmmm this is some good reading, I'll check it out.
(In reply to Igor from comment #7) > Hi Brock, jorp, a couple of questions: > > 1. Do you have "Initial title" set in Preferences? > 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial > title" to "%w", what do you see in the window title? I tried this, and it gives me the same result as before (as shown with the titles in my screenshot above). This being when I initially open a terminal window, the title says Untitled Window on the Window Button. On the window itself at the top it is blank. Then after the first command I run it updates the title in both places with the last command run.
(In reply to jorp from comment #10) > Sorry maybe this bug report wasn't appropriate then. For me, the title is > never replaced no matter what is running. For example, running `htop` will > replace the title as "htop" on systems where I do not encounter what I think > is a bug. With the issue I'm experiencing, it is always 'user@hostname'. Oh, well, this is a completely different story then. The terminal itself does not show the running process in the title - it only shows the current working directory (provided that vte is configured correctly). If you want to see the running process in the title, you have to modify your ~/.bashrc file: see, for example, https://askubuntu.com/questions/983041/how-to-make-the-top-bar-of-my-terminal-say-what-command-is-running So, if some of your machines do show the process, there's probably because of some ~/.bashrc modifications.
(In reply to Brock from comment #11) > (In reply to Igor from comment #7) > > Hi Brock, jorp, a couple of questions: > > > > 1. Do you have "Initial title" set in Preferences? > > 2. If you set "Dynamically set title" to "Isn't displayed" and "Initial > > title" to "%w", what do you see in the window title? > > I tried this, and it gives me the same result as before (as shown with the > titles in my screenshot above). This being when I initially open a terminal > window, the title says Untitled Window on the Window Button. On the window > itself at the top it is blank. Then after the first command I run it updates > the title in both places with the last command run. This is what you have configured in your ~/.bashrc, I guess. Can you try this recipe? For me, it did show both the current directory and the process running: https://stackoverflow.com/questions/10546217/how-to-view-process-name-in-terminal-emulator-tab-or-title-bar
I have information on the contents of my ~/.bashrc at the top where I first posted my question. However, adding the following to the bottom of my ~/.bashrc will show /bin/bash initially for the titles (instead of Terminal) which is fine. trap 'echo -ne "\033]2;$(history 1 | sed "s/^[0-9 ]* \+//")\007"' DEBUG I just reported this because it worked (see details above) on previous versions for example on Debian 9 and on Xubuntu 18.04. However, if fixing this is a hassle or super complicated, then I can just stick with my little workaround or the above command. Thanks!
(In reply to Brock from comment #14) > I have information on the contents of my ~/.bashrc at the top where I first > posted my question. > > However, adding the following to the bottom of my ~/.bashrc will show > /bin/bash initially for the titles (instead of Terminal) which is fine. > trap 'echo -ne "\033]2;$(history 1 | sed "s/^[0-9 ]* \+//")\007"' DEBUG > > I just reported this because it worked (see details above) on previous > versions for example on Debian 9 and on Xubuntu 18.04. However, if fixing > this is a hassle or super complicated, then I can just stick with my little > workaround or the above command. Thanks! I don't think that it was a terminal change that led to the difference in behavior. More likely, it was a change in bash version and/or your distro configuration. To verify that, you could run xfce4-terminal 0.8.3 on your current system and see whether is behaves the same way as version 0.8.7.4. You could also try gnome-terminal and see how it displays the titles.
Hi, any update on this?
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/35. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev