how to fix missing firefox printers

on 64-bit linux firefox, the print dialog often appears with an empty list of printers. for those of use who do not use CUPS, that also means no print to file option.

the reason is that firefox loads 64-bit gtk libraries, and the the solution is to point firefox at the 32-bit libraries. eg., on my x64 debian box, i created a /usr/bin/firefox script that launches the latest mozilla.org version instead of debian’s iceweasel. i set the GTK_PATH environment variable before launching firefox:

#!/bin/sh
export GTK_PATH=/usr/lib32/gtk-2.0/
cd /usr/local/lib/firefox
exec ./firefox "$@" &