Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-theme

In 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)