Commit graph

21 commits

Author SHA1 Message Date
Paul Delafosse
a5c2569654
feat: add a history attribute to plugin config as described in #110 (#112)
* feat: add a history attribute to plugin config as described in #110

closes #110

* fix: Correct grammar mistake in comment

Co-authored-by: Jacob Kauffmann <jacobgkau@users.noreply.github.com>
2022-05-12 08:42:56 -06:00
Paul Delafosse
1552b585d6 fix(plugin): load desktop entries from user dir
Currently the destkop-entry plugin retains the entries emitted by the freedesktop-desktop-entry crate in reverse order. 

For instance '$HOME/.local/share/applications/jetbrains-clion.desktop' is emitted first then 
overriden by '/usr/share/applications/jetbrains-clion.desktop'.  

Instead of `Hashset::replace`, `Hashset::insert` must be use to avoid overriding entries with higher priority. 

From freedesktop basedir specification: 
- " There is a set of preference ordered base directories relative to which data files should be searched. This set of directories is defined by the environment variable $XDG_DATA_DIRS." (see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)

From desktop-entries specification: 
-  "If multiple files have the same desktop file ID, the first one in the $XDG_DATA_DIRS precedence order is used." (see: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html)
2022-05-11 13:04:47 -06:00
Michael Aaron Murphy
dbfb3921ae feat: Switch from smol runtime to tokio 2022-03-29 01:52:13 +02:00
Michael Aaron Murphy
4153f9f060 refactor: Favor futures crate over futures-lite to reduce dependencies 2022-03-29 01:52:13 +02:00
Michael Aaron Murphy
eb6028f8fc fix: Show context for graphics only if switchable graphics found 2022-03-07 16:08:48 +01:00
Michael Aaron Murphy
563128904b chore: Update dependencies 2022-03-01 17:55:28 +01:00
Michael Aaron Murphy
8eb3104920 feat(desktop-entries): Nix application paths support 2021-12-21 14:39:28 -07:00
Michael Aaron Murphy
51dafc45e2 fix(launcher): Exclude GNOME Initial Setup 2021-10-19 17:14:24 +02:00
Michael Aaron Murphy
60799fb544 fix(desktop-entries): Adhere to NotShowIn restriction
Closes #20
2021-10-05 17:44:48 +02:00
Michael Aaron Murphy
7450393e97 fix(desktop-entries): Deduplicate AppIDs across sources
Closes #19
2021-10-05 17:44:48 +02:00
Michael Murphy
d297fced20
fix(desktop-entries): Filter desktop entries by App ID rather than Name
This change also avoids any entry whose Exec is `false`. This fixes the GNOME Extensions app, which has two entries with the same Name, but differing App ID's. One of these should be ignored by the launcher, and has its Exec as `false`.
2021-09-07 20:33:51 +02:00
Michael Aaron Murphy
1406efec23 chore: Apply GPL-3.0 SPDX license identifier to each source file 2021-08-30 18:35:32 +02:00
Michael Aaron Murphy
b5514a6e24 feat(service): Improved search result sorting via Jaro-Winkler 2021-08-26 15:59:50 +02:00
Michael Aaron Murphy
d6e93877ad fix(desktop-entries): Update dependency to use X-Ubuntu-Gettext-Domain translations 2021-08-20 21:14:31 +02:00
Michael Aaron Murphy
5ce96c624b fix(desktop-entries): Display hyphen in description only if there is a description 2021-08-20 18:24:16 +02:00
Michael Aaron Murphy
66fdf397cb fix(desktop-entries): Hide entry if it doesn't match DE requirement 2021-08-18 14:38:20 +02:00
Michael Aaron Murphy
a378194f57 fix(desktop-entries): Multi-word query support 2021-08-18 14:28:19 +02:00
Michael Aaron Murphy
5b15e92bcb fix(desktop-entries): Stop NoDisplay items from being shown 2021-08-18 14:26:18 +02:00
Michael Aaron Murphy
dae8108cb1 feat: Support context options 2021-08-17 17:02:42 +02:00
Michael Aaron Murphy
48f09be4c9 improv(plugins): Convert web plugin to Rust plugin, with config support 2021-08-16 13:19:06 +02:00
Michael Aaron Murphy
88acf0a74e improv: Separate components & merge plugins binary with launcher service 2021-08-14 14:31:31 +02:00