diff options
Diffstat (limited to 'firefox.sh.in')
-rw-r--r-- | firefox.sh.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/firefox.sh.in b/firefox.sh.in index 2623007..3bda263 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -83,12 +83,23 @@ FONTCONFIG_PATH="/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft" export FONTCONFIG_PATH ## -## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default -## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango +## Set MOZ_ENABLE_PANGO=1 to force enabling pango +## Set MOZ_DISABLE_PANGO=1 to force disabling of pango ## #MOZ_DISABLE_PANGO=1 #export MOZ_DISABLE_PANGO +# For now, in order to ship with firefox trademarks, we need to default to +# disable pango on non-indic locales. Use MOZ_ENABLE_PANGO=1 to force pango. +tmplang=${LC_CTYPE:-${LANG:-"en_US.UTF-8"}} +if ! echo $tmplang | grep "^..[_-]IN" > /dev/null; then + if [ -z "$MOZ_ENABLE_PANGO" ]; then + MOZ_DISABLE_PANGO=1 + export MOZ_DISABLE_PANGO + fi +fi + + function check_running() { $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM 'ping()' 2>/dev/null >/dev/null RETURN_VAL=$? |