Skip to content
GitLab
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
e57ec5af
Commit
e57ec5af
authored
Oct 15, 2014
by
Tails developers
Browse files
Simplify.
parent
afd75f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/bin/tor-browser
View file @
e57ec5af
...
...
@@ -36,11 +36,11 @@ enable_localized_searchplugins() {
local
locale
locale
=
$(
cat
"
${
PROFILE
}
"
/preferences/0000locale.js |
\
sed
's@^pref("general\.useragent\.locale", "\([^"]*\)");$@\1@'
)
if
[
"
${
locale
}
"
=
en-US
]
;
then
if
[
"
${
locale
}
"
=
en-US
]
||
[
-e
"
${
PROFILE
}
"
/searchplugins
]
;
then
return
fi
PLUGIN_DIR
=
"
${
TBB_INSTALL
}
"
/distribution/searchplugins/locale/
${
locale
}
if
[
!
-e
"
${
PROFILE
}
"
/searchplugins
]
&&
[
-d
"
${
PLUGIN_DIR
}
"
]
;
then
if
[
-d
"
${
PLUGIN_DIR
}
"
]
;
then
mkdir
-p
"
${
PROFILE
}
"
/searchplugins
# The plugins do not load if they are symlinks
cp
--dereference
"
${
PLUGIN_DIR
}
"
/
*
"
${
PROFILE
}
"
/searchplugins
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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