Does this sound like a familiar scenario?: You’ve found your favourite Seinfeld clip, you’ve waited for it to buffer, you’ve clicked fullscreen mode, swiftly alt-tabbed to check your mail (the thousandth time today), switched back into Firefox, clicked fullscreen again, only to find the comedy genius’ face has vacated your screen, or frozen, glass-eyed and unanimated, as the sound plays on? Seinfeld may be impossible to dislike, but this bug certainly isn’t.
To put the problem another way, fullscreen video only works the first time it’s attempted, and thereafter fails to show any images at all.
After what feels like years of suffering from this bug, a newbie Fedora convert last week encouraged me to cure the itch. Here’s how to fix it, adapted from Mozilla’s guide for Ubuntu.
- Press the meta (aka “windows”) key then type
- Open the terminal app, then type or paste:
sudo gedit /usr/share/applications/firefox.desktop
- Enter your password, hit enter.
- Scroll to the bottom of the text in the editor that should have opened (that’s Gedit), and look for the line that reads
- Replace it with this:
Exec=env LD_PRELOAD=/usr/lib/libGL.so.1 firefox %u
- Then save it (ctrl + s), and close gedit (file menu -> close).
- Now restart Firefox and the problem should be solved.
What we do here is basically change the command that Linux uses to run Firefox. Instead of running it directly (%u means use the same window if new links are opened, instead of creating new ones), we preload a graphics library first (libGL). That graphics library handles the fullscreen switching properly.