Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'am using this script -- lightsOn, to delay screensaver when flash playing.

However, the script provide only the Chromuim way:

flash_process=`pgrep -lfc "chromium-browser --type=plugin --plugin-path=/usr/lib/adobe-flashplugin"`

I am using the official Google Chrome in xfce. Not familiar with shell programming, the screenshot of my process running in Chrome.

screenshot of my process running in *Chrome*

I want to know how to detect the process of flash player to make this script running? Thanks.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I have found a solution to disable xscreensaver when flash playing in Chrome.

Firstly, disable shockwave flash plugin at '/opt/google/chrome/PepperFlash/libpepflashplayer.so' in chrome://plugins as follows:

disable shockwave flash plugin

Then the command can detect flash process in chrome:

flash_process=`pgrep -lfc "chrome --type=plugin --plugin-path=/usr/lib/flashplugin-installer/libflashplayer.so"`

And I have forked the script from github, and push the new one with Chrome flash detection. Here is my new script.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.