Nothing happens when I start Thunderbird
After upgrading to 3.0~rc1, when I start Thunderbird, either from the activities overview or from the terminal nothing happens. Still, my folder is renamed to
I'm attaching the output of
bash -x thunderbird.
Assigning to anonym who wrote this script.
Thunderbird: disable `set -eu` for Debian's migration helpers.
At least the `do_fix_mimetypes_rdf()` helper is not designed to run
with `set -e` in particular: if there is a mimeTypes.rdf inside the
profile directory, but it doesn't contain any associations to
"icedove" or "/usr/bin/iceweasel", then the `grep` will fail in such a
way that `set -e` makes the whole script abort. When set -e is
disabled, that failing `grep` will simply result in a variable being
empty, which is the expected outcome in that situation.
#4 Updated by cacahuatl about 1 year ago
In `/usr/local/bin/thunderbird` line 3 `set -e` means if any command returns non-0 the script terminates.
In `/usr/lib/thunderbird/thunderburd-wrapper-helper.sh` on line 140 the `grep` command will return 1 if there are no matches.
Anyone who doesn't have a `mimeTypes.rdf` file with something to change in it will be unable to launch thunderbird because it will exit at that point due to `grep` returning 1.
#5 Updated by cacahuatl about 1 year ago
In the case outlined above, a simple workaround is just to create a file in /home/amnesia/.thunderbird/ called .migrated so that it skips the checks, since that's what the script was about to do before launching thunderbird anyway.
cat <<EOF > /home/amnesia/.thunderbird/.migrated
This is an automatically created file by /usr/bin/thunderbird, it will be
recreated by every start of Thunderbird if the wrapper is not find it.
Remove that file only if you know the propose of this file.
/usr/share/doc/thunderbird/README.Debian.gz will hold some useful information
about this dot file.
#11 Updated by anonym about 1 year ago
- Status changed from Confirmed to In Progress
- Assignee changed from anonym to intrigeri
- % Done changed from 30 to 50
- QA Check set to Ready for QA
- Feature Branch set to bugfix/12580-thunderbird-migration-fix
First: to every one who has worked around this problem with
touch .thunderbird/profile.default/.migrated: your migration is successful so you can forget about this issue.
I managed to reproduce the exact situation from the submitters bash trace with:
touch .thunderbird/profile.default/mimeTypes.rdf (the only important thing is that it exists and doesn't contain the strings
/usr/bin/iceweasel). With the fix in the feature branch the migration will succeed and Thunderbird will start (see the commit message in 01419602d9e2d99cb74717695d08f527c51d7f10 for the full details).