diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 823ddfb1..bbe7a47e 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -82,6 +82,11 @@ Mon Nov 2 09:00:13 UTC 2020 - Wolfgang Rosenauer - Mozilla Firefox 82.0.2 * few bugfixes for introduced regressions +------------------------------------------------------------------- +Sun Nov 1 20:15:17 UTC 2020 - Kirill Kirillov + +- Enable GNOME search provider + ------------------------------------------------------------------- Thu Oct 15 20:44:47 UTC 2020 - Wolfgang Rosenauer diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index e1e4d0da..6b1fa38d 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -178,6 +178,7 @@ Source13: spellcheck.js Source14: https://github.com/openSUSE/firefox-scripts/raw/5e54f4a/create-tar.sh Source15: firefox-appdata.xml Source16: %{name}.changes +Source17: firefox-search-provider.ini # Set up API keys, see http://www.chromium.org/developers/how-tos/api-keys # Note: these are for the openSUSE Firefox builds ONLY. For your own distribution, # please get your own set of keys. @@ -655,6 +656,9 @@ sed "s:firefox.desktop:%{desktop_file_name}:g" \ # install man-page mkdir -p %{buildroot}%{_mandir}/man1/ cp %{SOURCE11} %{buildroot}%{_mandir}/man1/%{progname}.1 +# install GNOME Shell search provider +mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers +cp %{SOURCE17} %{buildroot}%{_datadir}/gnome-shell/search-providers ########## # ADDONS # @@ -775,6 +779,9 @@ exit 0 %endif %{_datadir}/applications/%{desktop_file_name}.desktop %{_datadir}/mime/packages/%{progname}.xml +%dir %{_datadir}/gnome-shell +%dir %{_datadir}/gnome-shell/search-providers +%{_datadir}/gnome-shell/search-providers/*.ini %dir %{_datadir}/mozilla %dir %{_datadir}/mozilla/extensions %dir %{_datadir}/mozilla/extensions/%{firefox_appid} diff --git a/firefox-search-provider.ini b/firefox-search-provider.ini new file mode 100644 index 00000000..e7f38a20 --- /dev/null +++ b/firefox-search-provider.ini @@ -0,0 +1,5 @@ +[Shell Search Provider] +DesktopId=firefox.desktop +BusName=org.mozilla.Firefox.SearchProvider +ObjectPath=/org/mozilla/Firefox/SearchProvider +Version=2 diff --git a/firefox.js b/firefox.js index 1385a1f6..110523b9 100644 --- a/firefox.js +++ b/firefox.js @@ -6,3 +6,5 @@ pref("network.trr.mode", 5); pref("extensions.autoDisableScopes", 0); pref("extensions.shownSelectionUI", true); pref("extensions.langpacks.signatures.required", false); +// enable D-Bus inteface for Gnome Shell search +pref("browser.gnome-search-provider.enabled",true);