I'am using this script -- lightsOn, to delay screensaver when flash playing.
However, the script provides 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.
I want to know how to detect the process of flash player to make this script running? Thanks.
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:
Then the command can detect flash process in chrome:
I have forked the script from github, and push the new one with Chrome flash detection. Here is the new script.
Well, the version of my google Chrome:
As Chrome uses the Pepper API, you can find the process referring to the chrome parameter 'type=ppapi'. You can do that using top/htop on the cmd line.
pgrep -lf "chrome --type=ppapi "