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
663f4b84
Commit
663f4b84
authored
May 27, 2012
by
Tails developers
Browse files
Make wikipedia the default and only search engine in the Unsafe Browser.
parent
ab2c7c69
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/sbin/unsafe-browser
View file @
663f4b84
...
...
@@ -135,6 +135,26 @@ EOF
# Remove all bookmarks
rm
-f
${
CHROOT
}
/etc/iceweasel/profile/bookmarks.html
# Make the English wikipedia the only available and default search
# engine (this is a documented cue for identifying the Unsafe Browser,
# which is extra important in camouflage mode when the scary coloured
# theme is disabled.)
find
${
CHROOT
}
/etc/iceweasel/profile/searchplugins/
\
${
CHROOT
}
/etc/iceweasel/searchplugins
-name
"*.xml"
|
\
while
read
searchengine
;
do
if
basename
"
$searchengine
"
|
grep
-qvi
wikipedia
;
then
rm
"
${
searchengine
}
"
fi
done
sed
-i
'/^user_pref("browser.search.defaultenginename",/d'
\
${
CHROOT
}
/etc/iceweasel/profile/user.js
echo
'user_pref("browser.search.defaultenginename", "Wikipedia (en)");'
>>
\
${
CHROOT
}
/etc/iceweasel/profile/user.js
sed
-i
'/^user_pref("browser.search.selectedEngine",/d'
\
${
CHROOT
}
/etc/iceweasel/profile/user.js
echo
'user_pref("browser.search.selectedEngine", "Wikipedia (en)");'
>>
\
${
CHROOT
}
/etc/iceweasel/profile/user.js
}
run_browser_in_chroot
()
{
...
...
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