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

Harmonize Unsafe Browser's dialog's a bit.

parent cfdf20f5
...@@ -56,24 +56,27 @@ cleanup () { ...@@ -56,24 +56,27 @@ cleanup () {
} }
error () { error () {
local cli_text="${CMD}: `gettext \"error\"`: ${@}" local cli_text="${CMD}: `gettext \"error:\"` ${@}"
local dialog_text="${@} local dialog_text="<b><big>`gettext \"Error\"`</big></b>
`gettext \"Unsafe Browser will exit now.\"`" ${@}"
echo "${cli_text}" >&2 echo "${cli_text}" >&2
sudo -u ${SUDO_USER} zenity --error --title "" --text "${dialog_text}" sudo -u ${SUDO_USER} zenity --error --title "" --text "${dialog_text}"
exit 1 exit 1
} }
warning () { warning () {
local text="${@}" local cli_text="${CMD}: `gettext \"warning:\"` ${text}"
echo "${CMD}: `gettext \"warning\"`: ${text}" >&2 local dialog_text="<b><big>`gettext \"Warning\"`</big></b>
sudo -u ${SUDO_USER} zenity --warning --title "" --text "${text}"
${@}"
echo "${cli_text}" >&2
sudo -u ${SUDO_USER} zenity --warning --title "" --text "${dialob_text}"
} }
verify_start () { verify_start () {
# Make sure the user really wants to start the browser # Make sure the user really wants to start the browser
local dialog_msg="<b>`gettext \"Do you really want to launch the Unsafe Browser?\"`</b> local dialog_msg="<b><big>`gettext \"Do you really want to launch the Unsafe Browser?\"`</big></b>
`gettext \"Network activity within the Unsafe Browser is <b>not anonymous</b>. Only use the Unsafe Browser if necessary, for example if you have to login or register to activate your Internet connection.\"`" `gettext \"Network activity within the Unsafe Browser is <b>not anonymous</b>. Only use the Unsafe Browser if necessary, for example if you have to login or register to activate your Internet connection.\"`"
local launch="`gettext \"_Launch\"`" local launch="`gettext \"_Launch\"`"
......
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