Better Fullscreen Flash Detection in Caffeine

Why: I’m currently running Ubuntu 11.10 and I recently discovered Caffeine to help me overcome a problem with the screensaver/screenlock kicking in when watching videos on the web. Unfortunately the option to “Activate for flash video” will not work for iPlayer and yousee.tv, so I added firefox to the list of programs that Caffeine activates for. Although this is working it’s not optimal, since the screensaver/screenlock won’t kick in if I forget to close firefox. So I have been trying to come up with a better solution, that effectively detects fullscreen Flash.

How: I wrote a small bash script called flash_detect.sh that checks if the current window is libflashplayer. I changed the _check_for_Flash method in core.py and made it call flash_detect.sh instead of flash_detect.py.

Download: Better Fullscreen Flash Detection in Caffeine.tar.gz

I had some inspiration for the fullscreen flash detection in anĀ ubuntuforums.org thread

 


Notice: compact() [function.compact]: Undefined variable: limits in /var/www/ossisoft.dk/public_html/blog/wp-includes/class-wp-comment-query.php on line 853

Notice: compact() [function.compact]: Undefined variable: groupby in /var/www/ossisoft.dk/public_html/blog/wp-includes/class-wp-comment-query.php on line 853