Commit 0e79909f authored by anonym's avatar anonym

Improve the directory of for the chroot browser config.

parent c11fbca6
......@@ -132,9 +132,10 @@ configure_chroot_browser_profile () {
# Set preferences
local browser_prefs="${browser_profile}/preferences/prefs.js"
local chroot_browser_config="/usr/share/tails/chroot-browsers"
mkdir -p "$(dirname "${browser_prefs}")"
cat "/usr/share/tails/chroot-browser/prefs.js" \
"/usr/share/tails/${browser_name}/prefs.js" > "${browser_prefs}"
cat "${chroot_browser_config}/common/prefs.js" \
"${chroot_browser_config}/${browser_name}/prefs.js" > "${browser_prefs}"
# Set browser home page to something that explains what's going on
if [ -n "${home_page}" ]; then
......@@ -146,13 +147,14 @@ configure_chroot_browser_profile () {
rm "${chroot}/${TBB_PROFILE}/bookmarks.html"
# Set an appropriate theme
cat "/usr/share/tails/${browser_name}/theme.js" >> "${browser_prefs}"
cat "${chroot_browser_config}/${browser_name}/theme.js" >> "${browser_prefs}"
# Customize the GUI.
local browser_chrome="${browser_profile}/chrome/userChrome.css"
mkdir -p "$(dirname "${browser_chrome}")"
cat "/usr/share/tails/chroot-browser/userChrome.css" \
"/usr/share/tails/${browser_name}/userChrome.css" >> "${browser_chrome}"
cat "${chroot_browser_config}/common/userChrome.css" \
"${chroot_browser_config}/${browser_name}/userChrome.css" >> \
"${browser_chrome}"
set_chroot_browser_permissions "${chroot}" "${browser_name}" "${browser_user}"
}
......
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