Fixed Gnome search provider

This commit is contained in:
Martin Stransky 2023-09-27 12:12:28 +02:00
parent e78a18fe12
commit 85de885472
5 changed files with 18 additions and 7 deletions

View File

@ -1,5 +0,0 @@
[Shell Search Provider]
DesktopId=firefox.desktop
BusName=org.mozilla.Firefox.SearchProvider
ObjectPath=/org/mozilla/Firefox/SearchProvider
Version=2

View File

@ -51,6 +51,7 @@ StartupNotify=true
Categories=Network;WebBrowser; Categories=Network;WebBrowser;
Keywords=web;browser;internet; Keywords=web;browser;internet;
Actions=new-window;new-private-window;profile-manager-window; Actions=new-window;new-private-window;profile-manager-window;
DBusActivatable=true
[Desktop Action new-window] [Desktop Action new-window]
Name=Open a New Window Name=Open a New Window

View File

@ -160,7 +160,7 @@ ExcludeArch: i686
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 118.0 Version: 118.0
Release: 1%{?pre_tag}%{?dist} Release: 2%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/firefox/ URL: https://www.mozilla.org/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ 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 Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
@ -183,7 +183,7 @@ Source30: firefox-x11.sh.in
Source31: firefox-x11.desktop Source31: firefox-x11.desktop
Source32: node-stdout-nonblocking-wrapper Source32: node-stdout-nonblocking-wrapper
Source33: firefox.appdata.xml.in Source33: firefox.appdata.xml.in
Source34: firefox-search-provider.ini Source34: org.mozilla.firefox.search-provider.ini
Source35: google-loc-api-key Source35: google-loc-api-key
Source37: mochitest-python.tar.gz Source37: mochitest-python.tar.gz
Source38: print_results Source38: print_results
@ -194,6 +194,7 @@ Source42: psummary
Source43: print_failures Source43: print_failures
Source44: print-error-reftest Source44: print-error-reftest
Source45: run-wayland-compositor Source45: run-wayland-compositor
Source46: org.mozilla.firefox.SearchProvider.service
# Build patches # Build patches
#Patch3: mozilla-build-arm.patch #Patch3: mozilla-build-arm.patch
@ -943,6 +944,8 @@ sed -e "s/__VERSION__/%{version}/" \
# Install Gnome search provider files # Install Gnome search provider files
mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers
cp %{SOURCE34} %{buildroot}%{_datadir}/gnome-shell/search-providers cp %{SOURCE34} %{buildroot}%{_datadir}/gnome-shell/search-providers
mkdir -p %{buildroot}%{_datadir}/dbus-1/services
cp %{SOURCE46} %{buildroot}%{_datadir}/dbus-1/services
# Remove copied libraries to speed up build # Remove copied libraries to speed up build
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
@ -1009,6 +1012,7 @@ fi
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/*.appdata.xml %{_datadir}/metainfo/*.appdata.xml
%{_datadir}/gnome-shell/search-providers/*.ini %{_datadir}/gnome-shell/search-providers/*.ini
%{_datadir}/dbus-1/services/*
%dir %{mozappdir} %dir %{mozappdir}
%license %{mozappdir}/LICENSE %license %{mozappdir}/LICENSE
%{mozappdir}/browser/chrome %{mozappdir}/browser/chrome
@ -1071,6 +1075,9 @@ fi
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Wed Sep 27 2023 Martin Stransky <stransky@redhat.com>- 118.0-2
- Fixed Gnome search provider
* Mon Sep 25 2023 Martin Stransky <stransky@redhat.com>- 118.0-1 * Mon Sep 25 2023 Martin Stransky <stransky@redhat.com>- 118.0-1
- Updated to 118.0 - Updated to 118.0

View File

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.mozilla.firefox.SearchProvider
Exec=/usr/bin/firefox

View File

@ -0,0 +1,5 @@
[Shell Search Provider]
DesktopId=firefox.desktop
BusName=org.mozilla.firefox.SearchProvider
ObjectPath=/org/mozilla/firefox/SearchProvider
Version=2