Giter Club home page Giter Club logo

Comments (15)

KELiON avatar KELiON commented on August 15, 2024 3

Test build in #62. @hotice @vessd @evsign would be cool if you can check it

from cerebro.

hotice avatar hotice commented on August 15, 2024 1

@vessd that I do not know, I am sorry. But snaps are pretty popular in Ubuntu already...

from cerebro.

evsign avatar evsign commented on August 15, 2024
  1. For getting list of all applications you can search all executable from $PATH variable.
  2. For human-friendly names you can search and parse *.desktop files in /usr/share/applications or ~/.local/share/applications
  3. Parse *.desktop files and get path to icons

from cerebro.

KELiON avatar KELiON commented on August 15, 2024

@evsign awesome, I'll try it:) Should it work for different systems (ubuntu, freebsd, debian) or only for some of them?

from cerebro.

hotice avatar hotice commented on August 15, 2024

Here's a screenshot from a similar application with the paths where it looks for .desktop files: http://i.imgur.com/j73W2m2.png . This should cover most, if not all Linux distributions.

from cerebro.

vessd avatar vessd commented on August 15, 2024

This should work on most distributions. But it is better to use the specification.

from cerebro.

hotice avatar hotice commented on August 15, 2024

But also remember to search for Snaps, which are pretty new...

from cerebro.

vessd avatar vessd commented on August 15, 2024

@hotice
Hmm, snap allows you to install two versions of the application. How then parse desktop files?
As for me, it is better to leave this issue for later. These applications are not so common.

from cerebro.

KELiON avatar KELiON commented on August 15, 2024

Awesome, thanks for links @vessd @hotice, it will help a lot!

from cerebro.

hotice avatar hotice commented on August 15, 2024

It works for me, but there are no application icons (but I assume that's intended for now). Would it be possible to also search in the "Keywords" field in the .desktop files, and not just the "Name" field?

from cerebro.

KELiON avatar KELiON commented on August 15, 2024

@hotice do you think it makes sense? I thought about it, but I'm afraid it can generate a noise. Do you have an example or what you search and expect to see, but don't get?

from cerebro.

hotice avatar hotice commented on August 15, 2024

That's how for example Unity Dash (the menu in Ubuntu with Unity) or the GNOME Shell Application search works. For example, the default GNOME text editor used to be called "Gedit", so without keywords, one might not have easily found it if it didn't know what it does (that's not the case for this application any more, as it's desktop file now uses "Text Editor" for its name).

Indeed, it might cause some noise for an application like Cerebro, which is not supposed to display a large list of results, so maybe it's not suitable for it. I've only used Cerebro for a few minutes and I'm not sure how it works under the hood, but usually similar quick launch applications display the most used results to the top of the search results, so in that case the noise shouldn't matter. But I don't know if Cerebro does this.

from cerebro.

KELiON avatar KELiON commented on August 15, 2024

@hotice thanks for so detailed explanation! Looks reasonable, but for now I didn't find a way to get most used applications on linux and windows, so applications search result just sorted by name if it matches search.

So, I'd leave it as I have now and add keywords search later, when we find a way to get most used applications

from cerebro.

chopfitzroy avatar chopfitzroy commented on August 15, 2024

@KELiON when will the next release containing these updates be (roughly) :).

Cheers.

from cerebro.

KELiON avatar KELiON commented on August 15, 2024

@CrashyBang just released

from cerebro.

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.