Fixing flatpaks bug not starting on OpenSUSE Leap 15.1


In some cases, a bug may occur that prevents applications installed in flatpak from starting on OpenSUSE. Learn now a simple and quick way to fix this problem.

Recently, after doing a clean installation of OpenSUSE Leap 15.1 on my machine, and enabling flatpaks support, I came across a somewhat bizarre problem. Applications installed using this method simply did not open, and via the graphical interface no error message was displayed.

In order to find out what was causing the problem, I tried to start different programs installed in flatpak directly from the terminal. The applications continued not to open, but some error messages were displayed on the terminal, messages that provided me with more information, facilitating the search for the solution.

On the “issues”On the Github of the Flatpak project I found reports from other users who encountered the same problem, and it was also there that I found the solution, or better said, a way to get around it.

How to solve?

This is a bug that appears to appear in a “random” way, and not all users of OpenSUSE Leap 15.1 had this problem. But if you, like me, were one of the “unlucky ones”, here’s the solution.

To work around the problem all you have to do is change your machine’s “hostname” to any name of your choice, and then restart your computer. Copy and paste the command below into your terminal:

hostnamectl --static set-hostname NORM07

You can optionally replace “NORM07”By the“ hostname ”of your choice, remembering to use only alphanumeric characters.

Now all you have to do is restart your computer, and go! Flatpak applications should be starting normally.

According to my tests, the problem occurred only in OpenSUSE Leap 15.1, which is using Flatpak in version 1.2.3. In OpenSUSE Tumbleweed, which has Flatpak in version 1.6.1, the problem did not occur. I did not find any mention of this correction in the release notes of the new versions of Flatpak, but the tests suggest that the problem has already been corrected in versions later than 1.2.3, which makes this a problem with an expiration date defined.

Finally, as long as there is no update on the version of flatpak present in OpenSUSE Leap to a version in which the bug has already been fixed, the procedure shown in this article is a good option to work around the problem and allow users to use applications in flatpak normally in the system.

Do you like Linux and technology? Have a question or problem that you can’t solve? Come join our community in the forum Diolinux Plus!

That’s all, folks! ?

Have you seen any errors or would you like to add any suggestions to this article? Collaborate, click here.