From f1680651ea95e3ea3d7e8851ca59bacac12ea05e Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 26 Jul 2020 10:14:22 +0200 Subject: [PATCH] main/postmarketos-ui-phosh: open links in firefox (MR 1455) Add mimeapps.list, so links clicked in postmarketos-welcome and other applications properly open in firefox. Without this patch, they just don't open at all. Bump the pkgver instead of the pkgrel, so the APKBUILD is in sync again on both master and v20.05 (right now, the pkgrel on v20.05 is ahead by one, otherwise the file is the same). Related: https://help.gnome.org/admin/system-admin-guide/stable/mime-types-application.html.en --- main/postmarketos-ui-phosh/APKBUILD | 8 ++++++-- main/postmarketos-ui-phosh/mimeapps.list | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 main/postmarketos-ui-phosh/mimeapps.list diff --git a/main/postmarketos-ui-phosh/APKBUILD b/main/postmarketos-ui-phosh/APKBUILD index 12072c755..8f163dbbd 100644 --- a/main/postmarketos-ui-phosh/APKBUILD +++ b/main/postmarketos-ui-phosh/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Bart Ribbers pkgname=postmarketos-ui-phosh -pkgver=3 -pkgrel=4 +pkgver=4 +pkgrel=0 pkgdesc="(Wayland) Mobile UI developed for the Librem 5 (works only with numeric passwords!)" url="https://puri.sm" arch="noarch !armhf" @@ -39,6 +39,7 @@ source="60-lightdm-autologin.conf gtk-app-wayland.sh qt-tweaks.sh dconf-profile-postmarketos + mimeapps.list 01-phoc-scaling 02-gnome-software-no-first-run " @@ -55,6 +56,8 @@ package() { "$pkgdir"/usr/bin/osk-wayland install -Dm755 "$srcdir"/dconf-profile-postmarketos \ "$pkgdir"/etc/dconf/profile/user + install -Dm644 "$srcdir"/mimeapps.list \ + "$pkgdir"/usr/share/applications/mimeapps.list install -Dm755 "$srcdir"/01-phoc-scaling \ "$pkgdir"/etc/dconf/db/postmarketos.d/01-phoc-scaling install -Dm755 "$srcdir"/02-gnome-software-no-first-run \ @@ -75,5 +78,6 @@ sha512sums="c51a5cf93495069d71900dd1c6fbddfa3bdfb70dbab8141d1b115b6150975a12206c 57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179 gtk-app-wayland.sh 6e193eca3961a78d47b4656892eae34d019d9317a255a201f5ea61e3300caff04c526a27cd98d0edc072b36e3eaf3a1768f4cd27c5e2be8b19c167d535c820a6 qt-tweaks.sh e00756c2c056f68123d877f2f6a5ad3434ca7851095f021c26831c081728b821cf7947ba08d6742eee51d93dc83859a7ead553f4dcbc8b6fcefa33ae344ba178 dconf-profile-postmarketos +74d5942b97ea123a0389d329a578f5782dcd87eab0f881744736e39cf784f665fc4ceda0c178ba1d78576d33dfefee6206377410642c9232561c0c0371cae48b mimeapps.list 6d99bd718fece9d202ebf76b807335b1e31ebeca52f2b8870bb4772787cf76bf4602f2506bc4ed077da0eac584ec72b879ad8317c926aabcf2ed48b0d7ba48f7 01-phoc-scaling 834d1c558b6a9ca26345928895a5436919aab13f944410240516953a13f8fdafae995af4b1baeee560a800c405a4d67c44bb92499bf8cacae7a17f6d9893577e 02-gnome-software-no-first-run" diff --git a/main/postmarketos-ui-phosh/mimeapps.list b/main/postmarketos-ui-phosh/mimeapps.list new file mode 100644 index 000000000..eeed45ac6 --- /dev/null +++ b/main/postmarketos-ui-phosh/mimeapps.list @@ -0,0 +1,10 @@ +[Default Applications] +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +text/html=firefox.desktop +application/x-extension-htm=firefox.desktop +application/x-extension-html=firefox.desktop +application/x-extension-shtml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/x-extension-xhtml=firefox.desktop +application/x-extension-xht=firefox.desktop