Wicd won’t save settings.

by intox

I came across a bug in wicd-gtk in-which some of the checkboxes weren’t working / saving the settings. Turns out this is a known bug, and should be fixed in the next version of wicd. Until then, however, a quick fix can be applied:

First, make sure you’re having the same problem by running wicd-gtk in a terminal, and selecting the checkbox for “automatically connect to this network”. Make sure at the end of the error it says something like:

File "/usr/local/lib/python2.7/dist-packages/wicd/misc.py", line 433, in sanitize_config
return s.translate(None, table)
TypeError: translate() takes exactly one argument (2 given)

Next, edit the file wicd/misc.py and find:

return s.translate(None, table)

and replace that with:

return str(s).translate(None, table)

Then restart wicd, and you should be good to go.

Sources:

https://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/770

https://answers.launchpad.net/wicd/+question/216256

I’m essentially posting this because I had to dig around before I could find an obvious solution. Like, googling “wicd won’t save settings” didn’t come up with the mentioned sources. Hopefully this post will be easier to find.