Monday, April 29, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4708  / 1 Year ago, fri, march 10, 2023, 6:44:30

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.



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.


More From » command-line

 Answers
4

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"`


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:
chrome version


[#34224] Saturday, March 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingsta

Total Points: 391
Total Questions: 103
Total Answers: 124

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
ingsta questions
Sun, Oct 23, 22, 01:42, 2 Years ago
Sat, Oct 30, 21, 11:27, 3 Years ago
Sun, Nov 28, 21, 12:49, 2 Years ago
;