To run a flatpak app from dmenu, you can create a symlink for the app in /usr/bin
.
You can find the flatpak apps binary link in /var/lib/flatpak/exports/bin/
on ubuntu.
E.g. to run Rocket Chat (installed from flatpak via software center), you can do something like this:
sudo ln -s /var/lib/flatpak/exports/bin/chat.rocket.RocketChat /usr/bin/rocket-chat
This way you will be able to find it in the dmenu.
Resources:
In fedora I made this configuration below and when running dmenu it now correctly picks up the bins of the flatpaks
I use i3wm
1.To edit
vi /usr/bin/dmenu_run
#!/usr/bin/sh
export PATH=$PATH:/var/lib/flatpak/exports/bin
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
Here it worked correctly
When in doubt, do a search where the dmenu_run file is
sudo find / -iname "dmenu_run"