Well, seeing as I posted about this earlier, I might as well give it an update.
Thanks to my own testing (I wish I had a userbase, but that would have meant some very angry people due to data loss bugs), I have fixed several bugs in changesettings.py in regards to reading the file and changing the line replacement while the class is instanced. (As I write this right now, I am realizing I need to make a similar change to the set up of the regular expression…. just to make the whole thing nice and manageable)
The previous revisions could eat your data because: 1) when you read a buffer in python, it is emptied (very c like if you ask me) and 2) the class was not re-searching the file after the inital change. The end result of both of those two things were that if you changed the setting twice, it would overwrite the file with the empty buffer and all that would be left would be the replacement string. The other issue resulted in the append/update logic being static.
Both of theseĀ issues have been fixed as of rev 35 iirc in the mainline ubuntustudio-controls branch.
0 Responses to “-controls update”