Giter VIP home page Giter VIP logo

adwaita-mime-patch's Introduction

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

Icons before the patch:

Icons after the patch:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.