7 # Import set_mozilla_pref()
8 .
/usr
/local
/lib
/tails-shell-library
/tor-browser.sh
10 # Import guess_best_thunderbird_locale():
11 .
/usr
/local
/lib
/tails-shell-library
/thunderbird.sh
13 THUNDERBIRD_CONFIG_DIR
="${HOME}/.thunderbird"
14 PROFILE
="${THUNDERBIRD_CONFIG_DIR}/profile.default"
16 thunderbird_config_is_persistent
() {
17 [ "$(findmnt --noheadings --output SOURCE --target "${THUNDERBIRD_CONFIG_DIR}")" = "/dev/mapper/TailsData_unlocked[/thunderbird]" ]
20 configure_default_incoming_protocol
() {
21 # For extensions.torbirdy.defaultprotocol, POP = 0, IMAP = 1
22 local default_protocol
23 if thunderbird_config_is_persistent
; then
29 set_mozilla_pref
"${PROFILE}/prefs.js" \
30 "extensions.torbirdy.defaultprotocol" \
31 "${default_protocol}" \
35 configure_best_thunderbird_locale
() {
37 locale
=$
(guess_best_thunderbird_locale
)
39 set_mozilla_pref
"${PROFILE}/prefs.js" \
40 "intl.locale.requested" \
46 export GNOME_ACCESSIBILITY
=1
49 configure_default_incoming_protocol
51 configure_best_thunderbird_locale
53 exec /usr
/bin
/thunderbird
--class "Thunderbird" -profile "${PROFILE}" "${@}"
56 start_thunderbird
"${@}"