Use firefox from flatpak

Resolves: https://issues.redhat.com/browse/RHEL-36521
This commit is contained in:
Olivier Fourdan 2024-12-18 10:54:40 +01:00
parent 1e57d7b1bb
commit fdb92c63eb
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From fb932adc99bb0b73567674ff905782a642b9b12e Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <ofourdan@redhat.com>
Date: Thu, 12 Dec 2024 14:05:04 +0100
Subject: [PATCH] search-app: Use firefox from flatpak
Firefox is being installed through flatpak these days, adjust the search
appliance to use flatpak instead of invoking firefox directly.
https://issues.redhat.com/browse/RHEL-36521
---
search-app/org.gnome.Kiosk.SearchApp.desktop.in.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/search-app/org.gnome.Kiosk.SearchApp.desktop.in.in b/search-app/org.gnome.Kiosk.SearchApp.desktop.in.in
index 360e6df..4416353 100644
--- a/search-app/org.gnome.Kiosk.SearchApp.desktop.in.in
+++ b/search-app/org.gnome.Kiosk.SearchApp.desktop.in.in
@@ -2,7 +2,7 @@
Type=Application
Name=Search Appliance
Comment=Sample Search Appliance Application for GNOME Kiosk
-Exec=@bindir@/firefox --kiosk --private-window --new-instance https://www.google.com
+Exec=@bindir@/flatpak run --command=firefox --file-forwarding org.mozilla.firefox --kiosk --private-window --new-instance https://www.google.com
Categories=GNOME;GTK;Core;
OnlyShowIn=GNOME;
NoDisplay=true
--
2.47.1

View File

@ -40,7 +40,9 @@ BuildRequires: pkgconfig(libmutter-15) >= %{mutter_version}
Requires: gnome-settings-daemon%{?_isa} >= %{gnome_settings_daemon_version}
Requires: gsettings-desktop-schemas%{?_isa} >= %{gsettings_desktop_schemas_version}
Patch: 0001-kiosk-app-Do-not-add-the-window-in-kiosk_app_new_for.patch
Patch0: 0001-kiosk-app-Do-not-add-the-window-in-kiosk_app_new_for.patch
# https://issues.redhat.com/browse/RHEL-36521
Patch1: 0001-search-app-Use-firefox-from-flatpak.patch
%description
GNOME Kiosk provides a desktop enviroment suitable for fixed purpose, or