Comments (15)
Test build in #62. @hotice @vessd @evsign would be cool if you can check it
from cerebro.
@vessd that I do not know, I am sorry. But snaps are pretty popular in Ubuntu already...
from cerebro.
- For getting list of all applications you can search all executable from $PATH variable.
- For human-friendly names you can search and parse *.desktop files in /usr/share/applications or ~/.local/share/applications
- Parse *.desktop files and get path to icons
from cerebro.
@evsign awesome, I'll try it:) Should it work for different systems (ubuntu, freebsd, debian) or only for some of them?
from cerebro.
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.
This should work on most distributions. But it is better to use the specification.
from cerebro.
But also remember to search for Snaps, which are pretty new...
from cerebro.
@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.
Awesome, thanks for links @vessd @hotice, it will help a lot!
from cerebro.
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.
@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.
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.
@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.
@KELiON when will the next release containing these updates be (roughly) :).
Cheers.
from cerebro.
@CrashyBang just released
from cerebro.
Related Issues (20)
- Record Screen Permission? Losing Focus on Enter? No working file or app search? HOT 2
- Provide more user clues when config.json is broken and Cerebro does not start HOT 3
- Customize fonts
- Where can I donate? HOT 2
- Favorites and Recent lists HOT 1
- Can't uninstall failed plugin HOT 6
- React.createContext is not a function HOT 4
- Implement OpenAI ChatGPT HOT 1
- cerebro on i3 doesn't work just opens then closes HOT 4
- Pasting from clipboard into Cerebro Search box not working on MacOS HOT 1
- Cerebro does not run on KDE Plasma HOT 12
- [Discussion] Is this project abandoned already? HOT 5
- Module parse failed: Unexpected character '�' (1:0) HOT 2
- Debian repository HOT 1
- Cerebro should respect macOS spaces HOT 3
- `libva` error in VirtualBox HOT 1
- any options to customize the default text appearing on cerebro toggle
- add a shortcut?
- It is not possible to change the hotkey in Mint HOT 1
- Installing on an immutable OS (Fedora Silverblue)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cerebro.