diff options
author | 2021-11-04 01:22:00 +0100 | |
---|---|---|
committer | 2021-11-04 01:23:02 +0100 | |
commit | fdd9de51042c5ac339e38aa55b0bb96ebdc1a253 (patch) | |
tree | 242c2ec983fbe05450005fcd469d7c95e3d63fc6 /mail-client/thunderbird-bin/files | |
parent | dev-perl/Sys-Virt: Stabilize 7.0.0 amd64, #805743 (diff) | |
download | gentoo-fdd9de51042c5ac339e38aa55b0bb96ebdc1a253.tar.gz gentoo-fdd9de51042c5ac339e38aa55b0bb96ebdc1a253.tar.bz2 gentoo-fdd9de51042c5ac339e38aa55b0bb96ebdc1a253.zip |
mail-client/thunderbird-bin: bump to v91.3.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'mail-client/thunderbird-bin/files')
-rw-r--r-- | mail-client/thunderbird-bin/files/thunderbird-bin-r1.sh | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/mail-client/thunderbird-bin/files/thunderbird-bin-r1.sh b/mail-client/thunderbird-bin/files/thunderbird-bin-r1.sh new file mode 100644 index 000000000000..bf8f6e0d4d54 --- /dev/null +++ b/mail-client/thunderbird-bin/files/thunderbird-bin-r1.sh @@ -0,0 +1,111 @@ +#!/bin/bash + +## +## Usage: +## +## $ thunderbird-bin +## +## This script is meant to run Mozilla Thunderbird (bin) in Gentoo. + +cmdname=$(basename "$0") + +## +## Variables +## +MOZ_ARCH=$(uname -m) +case ${MOZ_ARCH} in + x86_64|s390x|sparc64) + MOZ_LIB_DIR="@PREFIX@/lib64" + SECONDARY_LIB_DIR="@PREFIX@/lib" + ;; + *) + MOZ_LIB_DIR="@PREFIX@/lib" + SECONDARY_LIB_DIR="@PREFIX@/lib64" + ;; +esac + +MOZ_THUNDERBIRD_FILE="thunderbird-bin" +MOZILLA_FIVE_HOME="@MOZ_FIVE_HOME@" +MOZ_EXTENSIONS_PROFILE_DIR="${HOME}/.mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}" +MOZ_PROGRAM="${MOZILLA_FIVE_HOME}/${MOZ_THUNDERBIRD_FILE}" +APULSELIB_DIR="@APULSELIB_DIR@" + +## +## Enable Wayland backend? +## +if @DEFAULT_WAYLAND@ && [[ -z ${MOZ_DISABLE_WAYLAND} ]]; then + if [[ -n "${WAYLAND_DISPLAY}" ]]; then + export MOZ_ENABLE_WAYLAND=1 + fi +fi + +## +## Use D-Bus remote exclusively when there's Wayland display. +## +if [[ -n "${WAYLAND_DISPLAY}" ]]; then + export MOZ_DBUS_REMOTE=1 +fi + +## +## Make sure that we set the plugin path +## +MOZ_PLUGIN_DIR="plugins" + +if [[ -n "${MOZ_PLUGIN_PATH}" ]]; then + MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH}:${MOZ_LIB_DIR}/mozilla/${MOZ_PLUGIN_DIR} +else + MOZ_PLUGIN_PATH=${MOZ_LIB_DIR}/mozilla/${MOZ_PLUGIN_DIR} +fi + +if [[ -d "${SECONDARY_LIB_DIR}/mozilla/${MOZ_PLUGIN_DIR}" ]]; then + MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH}:${SECONDARY_LIB_DIR}/mozilla/${MOZ_PLUGIN_DIR} +fi + +export MOZ_PLUGIN_PATH + +## +## Set MOZ_APP_LAUNCHER for gnome-session +## +export MOZ_APP_LAUNCHER="@PREFIX@/bin/${cmdname}" + +## +## Disable the GNOME crash dialog, Mozilla has its own +## +if [[ "${XDG_CURRENT_DESKTOP}" == "GNOME" ]]; then + GNOME_DISABLE_CRASH_DIALOG=1 + export GNOME_DISABLE_CRASH_DIALOG +fi + +## +## Enable Xinput2 (#617344) +## + +# respect user settings +MOZ_USE_XINPUT2=${MOZ_USE_XINPUT2:-auto} + +if [[ ${MOZ_USE_XINPUT2} == auto && -n ${WAYLAND_DISPLAY} ]]; then + # enabling XINPUT2 should be safe for all wayland users + MOZ_USE_XINPUT2=1 +elif [[ ${MOZ_USE_XINPUT2} == auto && ${XDG_CURRENT_DESKTOP^^} == KDE ]]; then + # XINPUT2 is known to cause problems for KWin users + MOZ_USE_XINPUT2=0 +elif [[ ${MOZ_USE_XINPUT2} == auto && ${XDG_CURRENT_DESKTOP^^} == LXQT ]]; then + # LXQt uses KWin + MOZ_USE_XINPUT2=0 +elif [[ ${MOZ_USE_XINPUT2} == auto ]]; then + # should work on Mate, Xfce, FluxBox, OpenBox and all the others ... + MOZ_USE_XINPUT2=1 +fi + +[[ ${MOZ_USE_XINPUT2} != 0 ]] && export MOZ_USE_XINPUT2=${MOZ_USE_XINPUT2} + +# Don't throw "old profile" dialog box. +export MOZ_ALLOW_DOWNGRADE=1 + +## +## Set special variables for -bin +export LD_LIBRARY_PATH="${APULSELIB_DIR:+${APULSELIB_DIR}:}${MOZILLA_FIVE_HOME}" +export GTK_PATH="${MOZ_LIB_DIR}/gtk-3.0" + +# Run the mail client +exec ${MOZ_PROGRAM} "${@}" |