Firefox on Linux: Flash + other funny things

With my—manually installed—Firefox 21, flash (and, therefore, YouTube etc.) suddenly stopped working. Again.

Some time ago, no printer was displayed in Firefox.

In both cases, problem was that Firefox looked up the plugin/driver in a directory that did not exist. Firefox 21 changed the plugin location from firefox/plugins/ to firefox/browser/plugins/ , and the printer driver was not found a year ago since it was in /usr/lib32 instead of /usr/lib (when Debian changed the directory structure with 64-bit).

Strace helps

Strace is a nice console tool that traces system calls made by a program. System calls include file access! So let’s try, and filter the output for lines containing plugin:

$ strace firefox 2>&1 |grep plugin
[...]
access("/home/simon/.mozilla/plugins", F_OK) = -1 ENOENT (No such file or directory)
access("/data/bin/firefox/browser/plugins", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/mozilla/plugins", F_OK) = 0

Note the second access. This is where I extracted Firefox, and libflashplayer.so is in the plugins/ subdirectory, but Firefox now needs it to be in browser/plugins/ . Plugin moved, problem solved.

The solution for the printer problem works the same way. Filter the output for lines containing print, then open the printing dialog in Firefox. The solution is described here.