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