When I'm in Gnome I do file associations using Nautilus. (Right click->Associate File ... or something like that). On my machine where I don't have Gnome installed (but still use lots of its apps and libraries, I edit a text file in my ~/.gnome directory directly. When I get home if you'd like I could post the location of the file ...
for what its worth,