MozillaFirefox/mozilla.sh.in
branchfirefox97
changeset 1171 130d464159be
parent 1163 849d6343405b
equal deleted inserted replaced
1170:f9b2d408b7ef 1171:130d464159be
    98 if [ "$WAYLAND_DISPLAY" ]; then
    98 if [ "$WAYLAND_DISPLAY" ]; then
    99   export MOZ_DBUS_REMOTE=1
    99   export MOZ_DBUS_REMOTE=1
   100 fi
   100 fi
   101 
   101 
   102 # xinput2 (boo#1173320)
   102 # xinput2 (boo#1173320)
   103 source /etc/os-release
   103 . /etc/os-release
   104 if [ "$ID" = "opensuse-tumbleweed" ]; then
   104 if [ "$ID" = "opensuse-tumbleweed" ]; then
   105   export MOZ_USE_XINPUT2=1
   105   export MOZ_USE_XINPUT2=1
   106 fi
   106 fi
   107 
   107 
   108 ##
   108 ##
   149     CURRENT_LOCALE=${CURRENT_LOCALE:-$LC_MESSAGES}
   149     CURRENT_LOCALE=${CURRENT_LOCALE:-$LC_MESSAGES}
   150     CURRENT_LOCALE=${CURRENT_LOCALE:-$LANG}
   150     CURRENT_LOCALE=${CURRENT_LOCALE:-$LANG}
   151     # Try with a local variant first, then without a local variant
   151     # Try with a local variant first, then without a local variant
   152     SHORTMOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*||g" | sed "s|\..*||g"`
   152     SHORTMOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*||g" | sed "s|\..*||g"`
   153     MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g" | sed "s|\..*||g"`
   153     MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g" | sed "s|\..*||g"`
   154     function create_langpack_link() {
   154     create_langpack_link() {
   155         local language=$*
   155         local language=$*
   156         local langpack=langpack-${language}@firefox.mozilla.org.xpi
   156         local langpack=langpack-${language}@firefox.mozilla.org.xpi
   157         if [ -f $MOZ_LANGPACKS_DIR/$langpack ]; then
   157         if [ -f $MOZ_LANGPACKS_DIR/$langpack ]; then
   158             rm -rf $MOZ_EXTENSIONS_PROFILE_DIR/$langpack
   158             rm -rf $MOZ_EXTENSIONS_PROFILE_DIR/$langpack
   159             # If the target file is a symlink (the fallback langpack),
   159             # If the target file is a symlink (the fallback langpack),