24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
Description: try alternative locations for libwidevinecdm.so:
|
|
- $HOME/.local/lib/ (snap-friendly, see https://launchpad.net/bugs/1738149)
|
|
- /opt/google/chrome/ (installed by official google chrome package)
|
|
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
|
|
|
|
--- a/chrome/common/chrome_paths.cc
|
|
+++ b/chrome/common/chrome_paths.cc
|
|
@@ -377,6 +377,15 @@ bool PathProvider(int key, base::FilePat
|
|
// TODO(crbug.com/663554): Remove this after component updated CDM is
|
|
// supported on Linux and ChromeOS.
|
|
case chrome::FILE_WIDEVINE_CDM:
|
|
+ base::PathService::Get(base::DIR_HOME, &cur);
|
|
+ cur = cur.Append(FILE_PATH_LITERAL(".local/lib/libwidevinecdm.so"));
|
|
+ if (base::PathExists(cur)) {
|
|
+ break;
|
|
+ }
|
|
+ if (base::PathExists(base::FilePath(FILE_PATH_LITERAL("/opt/google/chrome/libwidevinecdm.so")))) {
|
|
+ cur = base::FilePath(FILE_PATH_LITERAL("/opt/google/chrome/libwidevinecdm.so"));
|
|
+ break;
|
|
+ }
|
|
if (!GetComponentDirectory(&cur))
|
|
return false;
|
|
cur =
|