I am running Firefox 15 on Ubuntu 12.04.
If I go to a website with a .deb link, Firefox downloads the file, then tries to open it with gedit. If I use Nautilus to open the .deb file, it runs it in either gdebi or Ubuntu Software Center (I've experimented with both).
Oddly, no matter what I've done I can't seem to get Firefox to believe that debs should not be opened by gedit. See below from my mimeapps.list. Also, there are no references to my .deb files in /usr/share/applications/defaults.list


