Commit afd75f0d authored by Tails developers's avatar Tails developers
Browse files

Get browser locale set by the new browser localization code.

parent db2517c6
......@@ -34,7 +34,7 @@ tor_has_bootstrapped() {
# the profile.
enable_localized_searchplugins() {
local locale
locale=$(cat /var/lib/tails-user-session/browser-locale.js | \
locale=$(cat "${PROFILE}"/preferences/0000locale.js | \
sed 's@^pref("general\.useragent\.locale", "\([^"]*\)");$@\1@')
if [ "${locale}" = en-US ]; then
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment