Deleting profiles doesn't update saved preferences unless other prefs are changed.
By shab... on September 13, 2014 00:13 (imported from Google Code)
What steps will reproduce the problem?
- Create a bunch of profiles (or accumulate them through years of fiddling)
- Open Prefs > Profiles and delete a bunch of them
2.5 (Reopen prefs or view Profiles menu and they are not listed) - Quit and Re-open iTerm2
What is the expected output?
That those profiles have been dispatched (humanely) to the profile afterlife. Or at least, aren't listed in menus (or present in the dumped plist) any longer.
What do you see instead?
Mysterious resurrection of the deleted profiles.
What version of iTerm2 are you using?
"iTerm Version" = "2.9.20140911-nightly";
What OS version are you using?
OSX 10.9.4
Please provide any additional information below.
This appears to occur irrespective of whether 'load prefs from custom folder' option is set. If it is, and 'save settings to folder' is clicked after profile deletion, there are no changes to the plist in the specified folder, or an error "Preferences at /Users/shabble/.dotfiles-repo/iterm2 changed since iTerm2 started. Overwrite it?" dialog occurs, neither of the options appear to have any effect.
Workaround:
Making any modification to any other profile (adding a char to a name, altering a tag, essentially anything I tried) does result in the deleted profiles being properly persisted. (Maybe just deletes alone aren't enough to mark the prefs data as 'dirty' and in need of re-saving? Not sure)
Files:
No attached files because it wasn't clear which to include (and part of the reason for exposing this bug was pruning my prefs to remove sensitive bits anyway).
I can produce some debug logs of specific operations if there's something you need to see, but there's a lot of closing & restarting iterm, so logging is a faff. Happy to provide if necessary though.