mirror of
https://github.com/MorizzG/gentoo-mg.git
synced 2025-12-06 04:22:43 +00:00
thunderbird: added files/
This commit is contained in:
parent
bcbef517b4
commit
713d9d29fe
6 changed files with 169 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"policies": {
|
||||
"DisableAppUpdate": true
|
||||
}
|
||||
}
|
||||
9
mail-client/thunderbird/files/distribution.ini
Normal file
9
mail-client/thunderbird/files/distribution.ini
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Global]
|
||||
id=gentoo
|
||||
version=1.0
|
||||
about=Mozilla Thunderbird for Gentoo
|
||||
about.de=Mozilla Thunderbird für Gentoo
|
||||
|
||||
[Preferences]
|
||||
app.distributor="gentoo"
|
||||
app.distributor.channel="gentoo"
|
||||
5
mail-client/thunderbird/files/gentoo-default-prefs-r1.js
Normal file
5
mail-client/thunderbird/files/gentoo-default-prefs-r1.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pref("general.smoothScroll", true);
|
||||
pref("general.autoScroll", false);
|
||||
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
|
||||
pref("mail.shell.checkDefaultClient", false);
|
||||
pref("intl.locale.requested", "");
|
||||
3
mail-client/thunderbird/files/gentoo-hwaccel-prefs.js
Normal file
3
mail-client/thunderbird/files/gentoo-hwaccel-prefs.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/* Force hardware accelerated rendering due to USE=hwaccel */
|
||||
pref("layers.acceleration.force-enabled", true);
|
||||
pref("webgl.force-enabled", true);
|
||||
31
mail-client/thunderbird/files/icon/thunderbird-r2.desktop
Normal file
31
mail-client/thunderbird/files/icon/thunderbird-r2.desktop
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=@NAME@
|
||||
GenericName=Email
|
||||
Comment=Send and Receive Email
|
||||
Comment[ca]=Llegiu i escriviu correu
|
||||
Comment[cs]=Čtení a psaní pošty
|
||||
Comment[de]=Emails lesen und verfassen
|
||||
Comment[fi]=Lue ja kirjoita sähköposteja
|
||||
Comment[fr]=Lire et écrire des courriels
|
||||
Comment[it]=Leggere e scrivere email
|
||||
Comment[ja]=メールの読み書き
|
||||
Comment[pl]=Czytanie i wysyłanie e-maili
|
||||
Comment[pt_BR]=Ler e escrever suas mensagens
|
||||
Comment[sv]=Läs och skriv e-post
|
||||
Exec=@EXEC@ %u
|
||||
Icon=@ICON@
|
||||
Terminal=false
|
||||
Type=Application
|
||||
MimeType=message/rfc822;text/calendar;x-scheme-handler/mailto;
|
||||
StartupNotify=true
|
||||
Categories=Network;Email;Calendar;
|
||||
Keywords=email;messages;calendar
|
||||
Actions=profile-manager-window;
|
||||
StartupWMClass=thunderbird-esr
|
||||
|
||||
[Desktop Action profile-manager-window]
|
||||
Name=Open the Profile Manager
|
||||
Name[de]=Profilverwaltung öffnen
|
||||
Name[cs]=Správa profilů
|
||||
Exec=@EXEC@ --ProfileManager
|
||||
116
mail-client/thunderbird/files/thunderbird-r1.sh
Normal file
116
mail-client/thunderbird/files/thunderbird-r1.sh
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
#!/bin/bash
|
||||
|
||||
##
|
||||
## Usage:
|
||||
##
|
||||
## $ thunderbird
|
||||
##
|
||||
## This script is meant to run Mozilla Thunderbird 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"
|
||||
|
||||
if [[ ! -r ${MOZ_LIB_DIR}/thunderbird/${MOZ_THUNDERBIRD_FILE} ]]; then
|
||||
if [[ ! -r ${SECONDARY_LIB_DIR}/thunderbird/${MOZ_THUNDERBIRD_FILE} ]]; then
|
||||
echo "Error: ${MOZ_LIB_DIR}/thunderbird/${MOZ_THUNDERBIRD_FILE} not found" >&2
|
||||
if [[ -d ${SECONDARY_LIB_DIR} ]]; then
|
||||
echo " ${SECONDARY_LIB_DIR}/thunderbird/${MOZ_THUNDERBIRD_FILE} not found" >&2
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
MOZ_LIB_DIR="${SECONDARY_LIB_DIR}"
|
||||
fi
|
||||
MOZILLA_FIVE_HOME="${MOZ_LIB_DIR}/thunderbird"
|
||||
MOZ_EXTENSIONS_PROFILE_DIR="${HOME}/.mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}"
|
||||
MOZ_PROGRAM="${MOZILLA_FIVE_HOME}/${MOZ_THUNDERBIRD_FILE}"
|
||||
|
||||
##
|
||||
## 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
|
||||
|
||||
# Run the mail client
|
||||
exec ${MOZ_PROGRAM} "${@}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue