For some reason my install decided to open all text files with a hex editor (okteta) instead of gedit. When I go into the properties window for the file type, remove okteta and click apply, okteta immediately reappears at the top of the list.
So I tried running
apt-get purge okteta
In the hopes that that would clear out whatever file is doing this, but it hasn't. Now I just get an error whenever I double click a text file.
Next I tried ubuntu-tweak, and okteta isn't on the list of applications used to open files at all.
Is there a file I can delete that will force reconfiguration?