Giter Club home page Giter Club logo

Comments (1)

l4l avatar l4l commented on June 7, 2024

I suppose that should be resolved after #13 which actually requires quite a significant rework of the logic.

Currently yofi does grab apps' names/paths of the icon from .desktop files (provided by the app) thus it should work most of the times. The problem that current implementation could only handle a single size of icon. I.e. the flow is the following:

  1. Find Icon= entry in desktop file (e.g. /usr/share/applications/firefox.desktop).
  2. If that doesn't look and quack like path then find a specified name in /usr/share/icons/<icon_theme>/<icon_size>x<icon_size> (and similar).
  3. Load the icon by the final path.

The problem is that <icon_size> is fixed and if an app has a different icon_size it won't be found. So for temporary solution one of the (poor) workarounds might work out for you:

  • Change icon.size in config.
  • Specify absolute icon path for certain desktop files.
  • Create rescaled icon and put it at /usr/share/icons/<icon_theme>/<icon_size>x<icon_size> (<icon_theme> by default is default).

from yofi.

Related Issues (20)

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.