Commit e8a50fd8 authored by Tails developers's avatar Tails developers
Browse files

Disable cups in the unsafe-browser

This will prevent the browser from hanging for several minutes will
trying to contact CUPS if a user accidentally presses CTRL+P or tries
to go to File -> Print.

Adapted from patch sent by Kill Your TV.
parent 0f3c442c
......@@ -173,6 +173,11 @@ configure_chroot () {
echo 'pref("network.proxy.type", 0);' >> "${CLEARNET_PREFS}"
echo 'pref("network.proxy.socks_remote_dns", false);' >> "${CLEARNET_PREFS}"
# Prevent File -> Print or CTRL+P from causing the browser to hang
# for several minutes while trying to communicate with CUPS, since
# access to port 631 isn't allowed through.
echo 'pref("print.postscript.cups.enabled", false);' >> "${CLEARNET_PREFS}"
# Set the name (e.g. window title) of the browser
set_chroot_browser_name "`gettext \"Unsafe Browser\"`"
Supports Markdown
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