l4l / yofi

yofi is a minimalistic menu for wayland
https://crates.io/crates/yofi
MIT License
376 stars 21 forks source link

Blacklist not working? #178

Closed moberer closed 4 weeks ago

moberer commented 1 month ago

Unfortunately I've got some Audio-Plugins installed, which clutter up the search. Since yofi offers blacklisting unwanted applications, I tried to do that.

Unfortunately, the blacklisted applications still show up, even though I added them to my list.

Location of the offending .desktop files:

$ locate .desktop | rg lsp
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x2_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x2_stereo.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x4_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x4_stereo.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x8_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x8_stereo.desktop
...

Content of ~/.config/yofi/blacklist:

/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x2_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x2_stereo.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x4_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x4_stereo.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x8_mono.desktop
/usr/share/applications/in.lsp_plug.lsp_plugins_ab_tester_x8_stereo.desktop
...

As far as I understand, this should work, shouldn't it? Or is there anything else I could try?

Thank you for your otherwise great launcher!

l4l commented 1 month ago

Well, that's actually works only with the filenames, not filepaths, so it should be:

in.lsp_plug.lsp_plugins_ab_tester_x2_mono.desktop
in.lsp_plug.lsp_plugins_ab_tester_x2_stereo.desktop
in.lsp_plug.lsp_plugins_ab_tester_x4_mono.desktop
...

Perhaps the path shall be also allowed.

moberer commented 4 weeks ago

Thank you for your quick answer, that managed to resolve my issue!

[Also, as a note for anyone having the same problem: The blacklist is only active when calling yofi directly and not for yofi apps, which will still show everything.]

moberer commented 4 weeks ago

I added an example to the wiki to make this clearer for future users; Hope that's alright for you;