From 108a3dabe6d87069ed16f9d2fce3d4104071d281 Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Wed, 20 May 2026 00:09:31 +0200 Subject: [PATCH] firefox-fourier: ship .desktop launcher (pkgrel=7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stock firefox.desktop disappears when our 'provides=firefox' replaces stock firefox-arch, so installing firefox-fourier left the user without a Plasma/GNOME start-menu entry. Add firefox-fourier.desktop with Categories=Network;WebBrowser; (routes under Internet on KDE Plasma 6), MIME types for the usual web schemes, new-window / private-window actions, and the 128px icon from the package's internal browser/chrome/icons tree. Reported on ohm (PineTab2 / Plasma 6) — manual /usr/share/applications shim proved the file works; this commits it to the recipe so future installs Just Work. --- arch/firefox-fourier/PKGBUILD | 14 +++++++++++-- arch/firefox-fourier/firefox-fourier.desktop | 22 ++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 arch/firefox-fourier/firefox-fourier.desktop diff --git a/arch/firefox-fourier/PKGBUILD b/arch/firefox-fourier/PKGBUILD index e86f4a345..638beba6c 100644 --- a/arch/firefox-fourier/PKGBUILD +++ b/arch/firefox-fourier/PKGBUILD @@ -13,7 +13,7 @@ pkgname=firefox-fourier pkgver=150.0.1 -pkgrel=6 +pkgrel=7 pkgdesc='Firefox with V4L2 stateless HW video decode unlocked for mainline Linux Rockchip' arch=('aarch64' 'x86_64') url='https://www.mozilla.org/firefox' @@ -91,8 +91,11 @@ source=( # Vendor-default prefs that gate the patched VAAPI path on RK3399 — # widget.dmabuf.force-enabled etc. See marfrit-packages#8 for evidence. 'rockchip-fourier-defaults.js' + # Plasma/GNOME start-menu entry — categorises under Internet, picks the + # 128px firefox icon shipped under /usr/lib/firefox-fourier/browser/. + 'firefox-fourier.desktop' ) -sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') +sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') prepare() { cd "${srcdir}/firefox-${pkgver}" @@ -180,4 +183,11 @@ LAUNCHER # VAAPI_VLD` + dmabuf surfaces locking end-to-end. install -Dm644 "${srcdir}/rockchip-fourier-defaults.js" \ "${pkgdir}/usr/lib/firefox-fourier/defaults/preferences/rockchip-fourier-defaults.js" + + # Desktop entry — fileless install would leave the package without a + # start-menu entry (stock firefox.desktop disappears when our `provides` + # replaces stock firefox). Plasma & GNOME pick this up via the + # `Categories=Network;WebBrowser;` line → "Internet" submenu. + install -Dm644 "${srcdir}/firefox-fourier.desktop" \ + "${pkgdir}/usr/share/applications/firefox-fourier.desktop" } diff --git a/arch/firefox-fourier/firefox-fourier.desktop b/arch/firefox-fourier/firefox-fourier.desktop new file mode 100644 index 000000000..0c391507b --- /dev/null +++ b/arch/firefox-fourier/firefox-fourier.desktop @@ -0,0 +1,22 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Firefox (Fourier — V4L2 HW decode) +GenericName=Web Browser +Comment=Browse the Web with V4L2 stateless HW video decode (RK3588/RK3566) +Exec=/usr/bin/firefox-fourier %u +Icon=/usr/lib/firefox-fourier/browser/chrome/icons/default/default128.png +Terminal=false +StartupNotify=true +StartupWMClass=firefox-fourier +Categories=Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;image/avif;application/json;application/pdf;audio/flac;audio/ogg;audio/webm;video/ogg;video/webm;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome;x-scheme-handler/mailto; +Actions=new-window;new-private-window; + +[Desktop Action new-window] +Name=Open a New Window +Exec=/usr/bin/firefox-fourier --new-window %u + +[Desktop Action new-private-window] +Name=Open a New Private Window +Exec=/usr/bin/firefox-fourier --private-window %u