Flatpak and Raspberry Pi

I recently got a Raspberry Pi 4 with 4GB of RAM. Since I really like and use Flatpak apps, might as well install some of them to my Pi 4. The Flatpak apps are very easy to install and Flathub is a one-stop place to download applications. As far as I know, the applications available in Flathub is more updated than what you can get from the package manager.

There are other options such as Snap, Appimage. Why Flatpak?

I was getting tired of searching around just to install a single app. If I were to use install the same app on my other computer, I would go the same steps. If I switched to a different distro, then it is a different way of installation. It is too much work. With Flatpak, it is a single command for any distros. I can find most of the app that I need at Flathub, so might as well get my apps there.

The first thing first is we need to install Flatpak to the Raspberry Pi. To install Flatpak, use the following commands below. The distro list can be found here and select the distro for the setup guide.

# Install Flatpak
sudo apt install flatpak

# Add the Flathub repo
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# Reboot the Pi
sudo reboot

Once back to the desktop, open the browser and navigate to Flathub where you can get the apps. In this post, I will install the Remmina app.

sudo flatpak install -y flathub org.remmina.Remmina

Once done, Remmina is installed. However, to launch the Remmina app or any other Flatpak apps on Raspbian, you would need to use the CLI command. The Flatpak apps do not appear on the Pi Application menu. With any Debian based OS, this issue does not exist, but on Raspbian only. This post is how I got around the missing clickable Flatpak apps.

Click on the Application menu > Preferences > Main Menu Editor. This will open a new window as shown in Figure 1.

Figure 1

Click on the New Menu, and give the new menu a name of your choice. In my case, I named it Flatpak as shown in Figure 2.

Figure 2

Once done, a new menu named Flatpak will be added on the side bar. Make sure that you click on the new menu you just created on the sidebar,so that every app/item you would add will be saved on this location. Click on New Item, and give the new application a new that would make sense to you. Since we are adding Remmina, I would rename mine Remmina as shown in Figure 3. The Command field is the command you would use to run Remmina via CLI. You get this command on the Flahub page where you get the installing command as shown in Figure 4.

Figure 3
Figure 4

Click OK on the Main Menu Editor to accept all the changes. Once done, a new item will appear under the new menu as shown in Figure 5. That pretty much it. Just repeat the process for each Flatpak app.

Figure 5

This is optional, but it does make it look nice. By default, there is no image to each app you would get added. To get the image, you would need to upload it to the menu in Figure 1. Therefore, it would require some manual work to find the images via your favorite search engine. Again, this is optional and doesn’t affect the goal of this post.

Go back to Application menu > Preferences > Main Menu Editor. For every menu or item, you can change its app icon. I’m going to change the Flatpak menu that was created earlier to Flatpak’s icon.

  1. To do so, on the sidebar, click on the Application then Flatpak
  2. Click on the Flatpak menu’s Properties
  3. Click on the folder icon and select your icon of choice
  4. Then click OK
Figure 6

To change the items icon is pretty much the same way. On the sidebar, click the Flatpak menu then select the item. In my case, it is Remmina. Click on Properties. Change the generic default image to the image of your choice then click OK

Figure 7

Hope you’ll find this useful. Cheers!

Leave a Comment

Your email address will not be published. Required fields are marked *

53 + = 63

WordPress Appliance - Powered by TurnKey Linux