Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for chrome pepper flash #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lightsOn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,17 @@ isAppRunning()

# Check if user want to detect Video fullscreen on Chromium, modify variable chromium_flash_detection if you dont want Chromium detection
if [ $chromium_flash_detection == 1 ];then
if [[ "$activ_win_title" = *exe* ]];then
if [[ "$activ_win_title" = *google-chrome* || "$activ_win_title" = *exe* ]];then
# Check if Chromium/Chrome Flash process is running
flash_process=`pgrep -lfc ".*((c|C)hrome|chromium).*flashp.*"`
if [[ $flash_process -ge 1 ]];then
return 1
fi
# Check if pepper flash is running
flash_process=`pgrep -lf "chrome --type=ppapi "`
if [[ -n $flash_process ]];then
return 1
fi
fi
fi

Expand Down Expand Up @@ -237,3 +242,4 @@ done


exit 0