Profile name is not updated after profile is changed
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.4.23 (and 3.4.22)
- OS version: MacOS 12.7.1 on MacPro6,1 (and MacOS 14.1.2 on Mac14,14)
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window)com.googlecode.iterm2.plist - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.debuglog.txt PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
$ iterm_profile_show
MERM-Solarized-Dark
$ iterm_profile_set MERM-Solarized-Light
$ iterm_profile_show
MERM-Solarized-Dark
What happened
Using these bash functions:
iterm_profile_show ()
{
echo $(osascript -e 'tell application "iTerm" to profile name of current session of current window')
}
iterm_profile_set ()
{
echo -e "\033]1337;SetProfile=$1\x7"
}
we can see the profile name (iterm_profile_show) and change it (iterm_profile_set). However, after changing the profile, the profile name is not updated when queried (although the profile actually does change).
What should have happened
When changing the profile via the function, the profile name should also be updated.
I'm pretty sure this worked correctly in the past.
Edited by Matt Martini