From 96d57ba38ffedc8262cefa004f905208a3866452 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Sat, 15 May 2021 14:18:28 +0300 Subject: Do not change the icon of ZIP files See also: https://github.com/edrlab/thorium-reader/issues/1468 --- PKGBUILD | 4 ++++ no_zip_mime.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 no_zip_mime.patch diff --git a/PKGBUILD b/PKGBUILD index 8838524..8d97221 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -31,4 +31,8 @@ package() { # Fix "no icon" issue (see also https://github.com/edrlab/thorium-reader/issues/1241) mv ${pkgdir}/usr/share/icons/hicolor/0x0 ${pkgdir}/usr/share/icons/hicolor/1024x1024 install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/thorium.png" "${pkgdir}/usr/share/pixmaps/thorium.png" + + # Do not change the icon of *.zip files to `x-office-document`. + # See also: https://github.com/edrlab/thorium-reader/issues/1468 + patch -d "${pkgdir}" --strip=1 < ../no_zip_mime.patch } diff --git a/no_zip_mime.patch b/no_zip_mime.patch new file mode 100644 index 0000000..c0170f4 --- /dev/null +++ b/no_zip_mime.patch @@ -0,0 +1,14 @@ +--- thorium-bin/usr/share/mime/packages/thorium.xml 2021-05-15 13:12:52.000000000 +0300 ++++ thorium-bin/usr/share/mime/packages/thorium.xml 2021-05-15 13:56:19.932753057 +0300 +@@ -15,11 +15,6 @@ + + + +- +- +- +- +- + + + -- cgit v1.2.3-70-g09d2