Skip to content

Commit

Permalink
Better Chromium: add architecture independent widevine handling
Browse files Browse the repository at this point in the history
also remove references to Chromium Widevine and add deprecated application custom note.
  • Loading branch information
theofficialgman committed Nov 19, 2023
1 parent ba1b04d commit 327cbaf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
20 changes: 9 additions & 11 deletions apps/Better Chromium/install
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ else
widevine=FALSE
fi
#detect if Widevine can be enabled
if [ $arch == 32 ];then
if package_available libwidevinecdm0;then
widevine_possible=TRUE
widevine_message=(--field="Enable Widevine DRM (for Netflix, Spotify)":CHK "$widevine")
else
Expand Down Expand Up @@ -404,20 +404,18 @@ else
fi

#widevine
if [ "$widevine_possible" == TRUE ] && [ "$widevine" == TRUE ] && [ ! -d /opt/WidevineCdm ];then
#install Chromium Widevine app
"${DIRECTORY}/manage" install "Chromium Widevine"

if [ "$widevine_possible" == TRUE ] && [ "$widevine" == TRUE ];then
#install libwidevinecdm0
if ! package_installed libwidevinecdm0 ;then
apt_lock_wait
sudo apt install -y libwidevinecdm0
fi
elif [ "$widevine_possible" == TRUE ] && [ "$widevine" == FALSE ];then
#disable Chromium Widevine
#uninstall libwidevinecdm0
if package_installed libwidevinecdm0 ;then
apt_lock_wait
sudo apt purge -y libwidevinecdm0
fi

if [ -d /opt/WidevineCdm ];then
#uninstall Chromium Widevine app
"${DIRECTORY}/manage" uninstall "Chromium Widevine"
fi
fi

if pgrep chromium >/dev/null || pgrep chromium-browser >/dev/null ;then
Expand Down
3 changes: 1 addition & 2 deletions apps/Chromium/description
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Open-source version of Google Chrome.
If you are using Raspberry Pi OS, this browser has been optimized by the Raspberry Pi Foundation to include hardware acceleration and other various performance improvements.

To play Netflix, Spotify, or other protected multimedia streams, see the Chromium Widevine app.
To install an older version of Chromium, see the Downgrade Chromium app.
To improve Chromium with features such as Google sync, dark mode, performance improvements, and reducing SD card writes, see the Better Chromium app.
To improve Chromium with features such as Google sync, dark mode, performance improvements, DRM (Widevine) support, and reducing SD card writes, see the Better Chromium app.

To run: Menu -> Internet -> Chromium Web Browser
To run in a terminal: chromium-browser
2 changes: 1 addition & 1 deletion etc/runonce-entries
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ You can install Pale Moon from Pi-Apps on a 64bit OS."
remove_deprecated_app "TBOPlayer"
remove_deprecated_app "Minecraft Java MultiMC5" "" "Due to upstream changes, MultiMC5 for ARM can no longer support any newer versions of Mincraft so it has been removed from Pi-Apps.
All users are encouraged to install Prism Launcher from Pi-Apps (a MultiMC fork with many improvements and new features)."
remove_deprecated_app "Chromium Widevine"
remove_deprecated_app "Chromium Widevine" "" "Use the Better Chromium app to handle enabling/disabling of Widevine in Chromium."
EOF
;;
esac
Expand Down

0 comments on commit 327cbaf

Please sign in to comment.