Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
bb980d2e
Commit
bb980d2e
authored
Oct 14, 2014
by
Tails developers
Browse files
Add workaround for
#8036
to enable localized search plugins.
parent
dd812cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/bin/tor-browser
View file @
bb980d2e
...
...
@@ -30,12 +30,30 @@ tor_has_bootstrapped() {
sudo
-n
-u
debian-tor /usr/local/sbin/tor-has-bootstrapped
}
# Workaround bug #8036 by copying any localized search plugins into
# the profile.
enable_localized_searchplugins
()
{
TBB_LOCALE
=
$(
cat
/var/lib/tails-user-session/browser-locale.js |
\
sed
's@^pref("general\.useragent\.locale", "\([^"]*\)");$@\1@'
)
if
[
"
${
TBB_LOCALE
}
"
=
en-US
]
;
then
return
fi
PLUGIN_DIR
=
"
${
TBB_INSTALL
}
"
/distribution/searchplugins/locale/
${
TBB_LOCALE
}
if
[
!
-e
"
${
PROFILE
}
"
/searchplugins
]
&&
[
-d
"
${
PLUGIN_DIR
}
"
]
;
then
mkdir
-p
"
${
PROFILE
}
"
/searchplugins
# The plugins do not load if they are symlinks
cp
--dereference
"
${
PLUGIN_DIR
}
"
/
*
"
${
PROFILE
}
"
/searchplugins
fi
}
start_browser
()
{
if
[
!
-d
"
${
PROFILE
}
"
]
;
then
/usr/local/bin/generate-tor-browser-profile
fi
# Workaround bug #8036
enable_localized_searchplugins
if
[
-z
"
$XAUTHORITY
"
]
;
then
XAUTHORITY
=
~/.Xauthority
export
XAUTHORITY
...
...
anonym
@anonym
mentioned in issue
#8036 (closed)
·
May 15, 2020
mentioned in issue
#8036 (closed)
mentioned in issue #8036
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment