+ set -e + set -u + . /usr/local/lib/tails-shell-library/tor-browser.sh ++ TBB_INSTALL=/usr/local/lib/tor-browser ++ TBB_PROFILE=/etc/tor-browser/profile ++ TBB_EXT=/usr/local/share/tor-browser-extensions ++ TOR_LAUNCHER_INSTALL=/usr/local/lib/tor-launcher-standalone ++ TOR_LAUNCHER_LOCALES_DIR=/usr/local/lib/tor-launcher-standalone/chrome/locale + THUNDERBIRD_CONFIG_DIR=/home/amnesia/.thunderbird + PROFILE=/home/amnesia/.thunderbird/profile.default + start_thunderbird + TMPDIR=/home/amnesia/.thunderbird/profile.default/tmp + mkdir --mode=0700 -p /home/amnesia/.thunderbird/profile.default/tmp + export TMPDIR + unset SESSION_MANAGER + configure_default_incoming_protocol + local default_protocol + thunderbird_config_is_persistent ++ findmnt --noheadings --output SOURCE --target /home/amnesia/.thunderbird + '[' '/dev/mapper/TailsData_unlocked[/thunderbird]' = '/dev/mapper/TailsData_unlocked[/thunderbird]' ']' + default_protocol=0 + set_mozilla_pref /home/amnesia/.thunderbird/profile.default/preferences/0000tails.js extensions.torbirdy.defaultprotocol 0 + local file name value prefix + file=/home/amnesia/.thunderbird/profile.default/preferences/0000tails.js + name=extensions.torbirdy.defaultprotocol + value=0 + prefix=pref + sed -i '/^pref("extensions.torbirdy.defaultprotocol",/d' /home/amnesia/.thunderbird/profile.default/preferences/0000tails.js + echo 'pref("extensions.torbirdy.defaultprotocol", 0);' + TB_PROFILE_FOLDER=/home/amnesia/.thunderbird + '[' '!' -f /home/amnesia/.thunderbird/.migrated ']' + . /usr/lib/thunderbird/thunderbird-wrapper-helper.sh ++ '[' GNOME = '' ']' ++ DESKTOP=GNOME +++ date +%F-%H%M%S ++ DATE=2017-05-22-143252 +++ echo GNOME +++ tr '[:upper:]' '[:lower:]' ++ DESKTOP=gnome ++ DEFAULT_X11_MSG='If you see this message box something went wrong while adopting your Icedove profile(s) into the Thunderbird profile folder! The following error happened:' ++ DOT_THUNDERBIRD_EXISTS='If you see this message box something went wrong while adopting your Icedove profile(s) into the Thunderbird profile folder! The following error happened: An existing profile folder (or symlink) '\''.thunderbird'\'' and a folder (or symlink) '\''.icedove'\'' was found in your Home directory '\''/home/amnesia/'\'' while trying to migrate the Icedove profile(s) folder! This could be an old, currently not used profile folder or you might be using a Thunderbird installation from the Mozilla packages. If you don'\''t need this old profile folder, you can remove or backup it and start Thunderbird again. Sorry, but please investigate the situation by yourself. The Debian wiki is also holding extra information about the migration of Icedove to Thunderbird. https://wiki.debian.org/Thunderbird Please mind also the information in section '\''Profile Migration'\'' given in the file /usr/share/doc/thunderbird/README.Debian.gz ' ++ THUNDERBIRD_PROFILE_LINKING_ERROR='If you see this message box something went wrong while adopting your Icedove profile(s) into the Thunderbird profile folder! The following error happened: A needed symlink for the Thunderbird profile(s) folder '\''.thunderbird'\'' to the old existing Icedove profile '\''.icedove'\'' couldn'\''t created. Sorry, but please investigate the situation by yourself. Please mind also the information in section '\''Profile Migration'\'' given in the file /usr/share/doc/thunderbird/README.Debian.gz ' ++ START_MIGRATION='You see this window because you'\''re starting Thunderbird probably for the first time with underlaying profile(s) from Icedove. The Debian Icedove package is de-branded back to Thunderbird. The Icedove profile(s) will now be adopted to the Thunderbird folder structure. This will take a short time! Please be patient, the Thunderbird program will be started right after the changes. If you need more information about the de-branding and changes of the Icedove package please take a look into /usr/share/doc/thunderbird/README.Debian.gz The Debian wiki is also holding extra information about the migration of Icedove to Thunderbird. https://wiki.debian.org/Thunderbird ' ++ TITLE='Icedove to Thunderbird Profile adoption' + do_fix_mimetypes_rdf ++ find -L /home/amnesia/.thunderbird/ -name mimeTypes.rdf + for MIME_TYPES_RDF_FILE in $(find -L "${TB_PROFILE_FOLDER}/" -name mimeTypes.rdf) ++ grep '/usr/bin/iceweasel\|icedove' /home/amnesia/.thunderbird/profile.default/mimeTypes.rdf + RDF_SEARCH_PATTERN=