Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akotov-dev/adwaita-mime-patch
Patch package that eliminates the overlap of mime-type icons in adwaita-icon-theme
https://github.com/akotov-dev/adwaita-mime-patch
adwaita-icon-theme hicolor mageia-linux mime-types patch rpm
Last synced: about 2 months ago
JSON representation
Patch package that eliminates the overlap of mime-type icons in adwaita-icon-theme
- Host: GitHub
- URL: https://github.com/akotov-dev/adwaita-mime-patch
- Owner: AKotov-dev
- License: gpl-3.0
- Created: 2021-03-26T17:34:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-21T17:04:55.000Z (11 months ago)
- Last Synced: 2024-01-21T19:58:22.430Z (11 months ago)
- Topics: adwaita-icon-theme, hicolor, mageia-linux, mime-types, patch, rpm
- Homepage:
- Size: 27.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
adwaita-mime-patch
---
**Save yourself from problems with displaying mime-type icons in your system:**
+ Switch to a different system icon theme
+ Delete the unwanted package: `rpm -e --nodeps adwaita-icon-theme`...or install the simulated empty package to exclude updates.
### History
Patch package that eliminates the overlap of mime-type icons in adwaita-icon-themeIn the version `adwaita-icon-theme-3.37.92` and higher, the icons of the mime types `application-x-generic.png` overlap the newly created mime types from the `hicolor` theme and puts empty icons instead of the mime icons of the application files. Only after manual intervention it becomes possible to see the real icons of
a particular mime type: `rename -v \.png \.bak $(find /usr/share/icons/Adwaita/*/mimetypes/ -name 'application-x-generic.*'); gtk-update-icon-cache -f /usr/share/icons/Adwaita/`A prime example is VirtualBox and virtual machine file extensions: `*.vdi`, `*.vbox`, `*.vmdk`. This is just one example.
With the release of `adwaita-icon-theme-3.38.0`, the fault is present globally. Tested in Fedora 33 (Gnome/Mate), Solus 4.1 (Budgie/Mate/Gnome), Mageia-8 (all DE).
The latest version that works correctly - `adwaita-icon-theme-3.37.2`.The `adwaita-mime-patch` package contains a couple of scripts for the `%post` and `%postun` events:
%post
`rename -v \.png \.bak $(find /usr/share/icons/Adwaita/*/mimetypes/ -name 'application-x-generic.*'); gtk-update-icon-cache -f /usr/share/icons/Adwaita/`%postun
`rename -v \.bak \.png $(find /usr/share/icons/Adwaita/*/mimetypes/ -name 'application-x-generic.*'); gtk-update-icon-cache -f /usr/share/icons/Adwaita/`After installing this patch, the display of mime-type icons works correctly. After deleting the package, everything returns to its original state. That is, to quickly roll back when the problem is resolved.
Issue: https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/108
**Similar programs:** [shared-mime-info-patch](https://github.com/AKotov-dev/shared-mime-info-patch)
Icons before the patch:
![](https://github.com/AKotov-dev/adwaita-mime-patch/blob/main/ScreenShots/before-patch.png)Icons after the patch:
![](https://github.com/AKotov-dev/adwaita-mime-patch/blob/main/ScreenShots/after-patch.png)