Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.24k stars 95 forks source link

Flatpak support #257

Closed EliaHKM closed 4 months ago

EliaHKM commented 2 years ago

Hi 🙋🏻, Could you add support to Flatpak apps?

Earnestly commented 2 years ago

It already does

EliaHKM commented 2 years ago

nothing showed up what should I add to bemenu-run to make it showing the flatpak apps

Earnestly commented 2 years ago

I don't know flatpak enough to understand what "showing up" means, but here is the workflow: https://github.com/Cloudef/bemenu/blob/master/.github/workflows/flatpak.yml

Cloudef commented 2 years ago

I think he means he wants support for xdg-desktop spec. You can combine bemenu with j4-dmenu-desktop for that. https://github.com/enkore/j4-dmenu-desktop

EliaHKM commented 2 years ago

I'm using sway on EndeavourOS and I'm not a developer what I need here is when I typed flatseal (flatpak app) in bemenu text-field that app(flatseal) show up in the list

orowith2os commented 2 years ago

Gonna bump this a bit with some more details:

User-installed flatpaks don't show up at all when I execute bemenu-run System-installed flatpaks seem to work for other people, but I have all of my flatpaks installed in my home folder, so I can't verify this currently.

Displaying the flatpak names (the actual names and flatpak executable name) doesn't seem to work on a majority of launchers I've tried, and krunner has insanely long startup times for some reason, so bemenu having a fix to show flatpaks correctly would be appreciated.

aqxa1 commented 1 year ago

Just to document the j4-dmenu-desktop workaround, here's the command I used in sway's config:

set $menu dmenu_path | j4-dmenu-desktop --dmenu="bemenu --ignorecase" | xargs swaymsg exec --

You probably want to use --ignorecase as flatpaks seem to start with a capital letter.

But yeah, would still be nice to have this support built in.

nful2 commented 1 year ago

@Cloudef This works, thanks!