Look for extensions in $CHROMIUM_EXTENSION_DIRECTORY instead of /usr/share/chromium/extensions. --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -4,6 +4,7 @@ #include "chrome/common/chrome_paths.h" +#include "base/environment.h" #include "base/files/file_util.h" #include "base/logging.h" #include "base/native_library.h" @@ -511,7 +512,13 @@ #endif #if defined(OS_LINUX) || defined(OS_CHROMEOS) case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { - cur = base::FilePath(kFilepathSinglePrefExtensions); + std::unique_ptr environment(base::Environment::Create()); + std::string extension_dir; + if (environment->GetVar("CHROMIUM_EXTENSION_DIRECTORY", &extension_dir)) { + cur = base::FilePath(extension_dir); + } else { + cur = base::FilePath(kFilepathSinglePrefExtensions); + } break; } #endif >
aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-lint.sh
AgeCommit message (Expand)Author
2021-02-22packages: 'package-field-location' handles 'search-path' returning #f....Fixes <https://bugs.gnu.org/46390>. Reported by zimoun <zimon.toutoune@gmail.com>. This is similar to the fix in d10474c38d58bdc676e64336769dc2e00cdfa8ed. * guix/packages.scm (package-field-location): Handle FILE not in %LOAD-PATH. * tests/guix-lint.sh: Add test. Ludovic Courtès