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:
I have tried using what @alissonzuza and @mlaiseca3 have suggested, and while it works, you have to type in the full name of the application instead of the short name.
For example, if you want to open the flatpak of DBeaver, you have to type in
io.
, which will then make theio.DBeaver.DBeaverCommunity
option appear.If you were to type in DBeaver, it would not appear.
Because I did not like this behavior, I modified my dmenu_run file to be as follows:
Then, back in the terminal, I executed the following
And boom, it worked.
What the script does is that it creates symbolic links to the real flatpaks. The symbolic links do not carry the entire fully qualified name, but rather just the short name.
This way, I can just type DBeaver, and it will appear listed.
A solution that while not as short and elegant as the two above, works very well for me.
After you install a new flatpak, the link containing the symbolic links will be recreated, so you will always have all the flatpaks listed in dmenu