summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD4
-rw-r--r--no_zip_mime.patch14
2 files changed, 18 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8838524..8d97221 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,4 +31,8 @@ package() {
31 # Fix "no icon" issue (see also https://github.com/edrlab/thorium-reader/issues/1241) 31 # Fix "no icon" issue (see also https://github.com/edrlab/thorium-reader/issues/1241)
32 mv ${pkgdir}/usr/share/icons/hicolor/0x0 ${pkgdir}/usr/share/icons/hicolor/1024x1024 32 mv ${pkgdir}/usr/share/icons/hicolor/0x0 ${pkgdir}/usr/share/icons/hicolor/1024x1024
33 install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/thorium.png" "${pkgdir}/usr/share/pixmaps/thorium.png" 33 install -Dm 644 "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/thorium.png" "${pkgdir}/usr/share/pixmaps/thorium.png"
34
35 # Do not change the icon of *.zip files to `x-office-document`.
36 # See also: https://github.com/edrlab/thorium-reader/issues/1468
37 patch -d "${pkgdir}" --strip=1 < ../no_zip_mime.patch
34} 38}
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 @@
1--- thorium-bin/usr/share/mime/packages/thorium.xml 2021-05-15 13:12:52.000000000 +0300
2+++ thorium-bin/usr/share/mime/packages/thorium.xml 2021-05-15 13:56:19.932753057 +0300
3@@ -15,11 +15,6 @@
4
5 <icon name="x-office-document" />
6 </mime-type>
7-<mime-type type="application/zip">
8- <glob pattern="*.zip"/>
9-
10- <icon name="x-office-document" />
11-</mime-type>
12 <mime-type type="application/oebps-package+xml">
13 <glob pattern="*.opf"/>
14