diff options
author | Naglis Jonaitis | 2021-05-15 14:18:28 +0300 |
---|---|---|
committer | Naglis Jonaitis | 2021-05-15 14:18:28 +0300 |
commit | 96d57ba38ffedc8262cefa004f905208a3866452 (patch) | |
tree | 2d78bd29e7417da4c21962b2773bd2c1c6329a09 | |
parent | 7fe23e1435127d3abb3730f5d8ca248f506ac4ac (diff) | |
download | packages-96d57ba38ffedc8262cefa004f905208a3866452.tar.gz packages-96d57ba38ffedc8262cefa004f905208a3866452.tar.bz2 packages-96d57ba38ffedc8262cefa004f905208a3866452.zip |
Do not change the icon of ZIP files
See also: https://github.com/edrlab/thorium-reader/issues/1468
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | no_zip_mime.patch | 14 |
2 files changed, 18 insertions, 0 deletions
@@ -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 | |||