From cb5dfef78dfdfd613bcbeaa7565200718fcab1fd Mon Sep 17 00:00:00 2001 From: Tails developers Date: Tue, 21 Oct 2014 17:12:34 +0200 Subject: [PATCH] Make start page parameter optional. --- .../usr/local/lib/tails-shell-library/chroot-browser.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh b/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh index 78d3e467a0..83ea351b5c 100644 --- a/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh +++ b/config/chroot_local-includes/usr/local/lib/tails-shell-library/chroot-browser.sh @@ -174,8 +174,10 @@ configure_chroot_browser () { cp /usr/share/tails/"${browser_name}/prefs.js" "${browser_prefs}" # Set start page to something that explains what's going on - echo 'user_pref("browser.startup.homepage", "'"${startpage}"'");' >> \ - "${browser_prefs}" + if [ -n "${startpage}" ]; then + echo 'user_pref("browser.startup.homepage", "'"${startpage}"'");' >> \ + "${browser_prefs}" + fi # Customize the GUI local browser_chrome="${browser_profile}/chrome/userChrome.css" -- GitLab