diff options
author | Jan Horak <jhorak@redhat.com> | 2022-05-16 20:50:22 +0200 |
---|---|---|
committer | Jan Horak <jhorak@redhat.com> | 2022-05-16 20:50:22 +0200 |
commit | 300248bcb6f3dc5126d45aeeef553547e5c22f20 (patch) | |
tree | a0930bdf168803f664f6f52d3129daaebe40b117 | |
parent | Removed already added patch: mozilla-1767916-multimonitor-crash.patch (diff) | |
download | librewolf-fedora-ff-300248bcb6f3dc5126d45aeeef553547e5c22f20.tar.gz librewolf-fedora-ff-300248bcb6f3dc5126d45aeeef553547e5c22f20.tar.bz2 librewolf-fedora-ff-300248bcb6f3dc5126d45aeeef553547e5c22f20.zip |
Fix spellchecker.dictionary_path of F36+
-rw-r--r-- | firefox-redhat-default-prefs.js | 2 | ||||
-rw-r--r-- | firefox.spec | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/firefox-redhat-default-prefs.js b/firefox-redhat-default-prefs.js index 1c0be99..6fcee25 100644 --- a/firefox-redhat-default-prefs.js +++ b/firefox-redhat-default-prefs.js @@ -26,7 +26,7 @@ pref("plugins.notifyMissingFlash", false); pref("browser.display.use_system_colors", false); /* Allow sending credetials to all https:// sites */ pref("network.negotiate-auth.trusted-uris", "https://"); -pref("spellchecker.dictionary_path","/usr/share/myspell"); +pref("spellchecker.dictionary_path","/usr/share/hunspell"); /* Disable DoH by default */ pref("network.trr.mode", 5); /* Enable per-user policy dir, see mozbz#1583466 */ diff --git a/firefox.spec b/firefox.spec index 336f2a5..9b0c29c 100644 --- a/firefox.spec +++ b/firefox.spec @@ -163,7 +163,7 @@ ExcludeArch: aarch64 Summary: Mozilla Firefox Web browser Name: firefox Version: 100.0 -Release: 5%{?pre_tag}%{?dist} +Release: 6%{?pre_tag}%{?dist} URL: https://www.mozilla.org/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz @@ -905,6 +905,13 @@ ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries # Default %{__cp} %{SOURCE12} %{buildroot}%{mozappdir}/browser/defaults/preferences +# Since Fedora 36 the location of dictionaries has changed to /usr/share/hunspell. +# For backward spec compatibility we set the old path in previous versions. +# TODO remove when Fedora 35 becomes obsolete +%if 0%{?fedora} <= 35 +sed -ie 's|/usr/share/hunspell|/usr/share/myspell|g' %{buildroot}%{mozappdir}/browser/defaults/preferences/firefox-redhat-default-prefs.js +%endif + # Copy over run-mozilla.sh %{__cp} build/unix/run-mozilla.sh %{buildroot}%{mozappdir} @@ -1052,6 +1059,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Mon May 16 2022 Jan Horak <jhorak@redhat.com> - 100.0-6 +- Fix spellchecker.dictionary_path of F36+ + * Tue May 10 2022 Jan Horak <jhorak@redhat.com> - 100.0-5 - Fix crashes on f36 multimonitor setup and too big profile manager |