Flatpak on windows

As I teased about last week I recently played around with WSL, which lets you run Linux applications on Windows. This isn’t necessarily very useful, as there isn’t really a lack of native applications on Windows, but it is still interesting from a technical viewpoint.

I created a wip/WSL branch of flatpak that has some workarounds needed for flatpak to work, and wrote some simple docs on how to build and test it.

There are some really big problems with this port. For example, WSL doesn’t support seccomp or network namespaces which removes some of the utility of the sandbox. There is also a bad bug that makes read-only bind-mounts not work for flatpak, which is really unsafe as apps can modify themselves (or the runtime). There were also various other bugs that I reported. Additionally, some apps rely on things on the linux host that don’t exist in the WSL environment (such as pulseaudio, or various dbus services).

Still, its amazing that it works as well as it does. I was able to run various games, gnome and kde apps, and even the linux versions of telegram. Massive kudos to the Microsoft developers who worked on this!

I know you crave more screenshots, so here is one:

2 thoughts on “Flatpak on windows”

  1. Hi Alex, I’m not interested in Microsoft Windows but I think your approach can attract more Windows users to help testing GNOME and GNU/Linux applications. I wonder if Snappy and AppImage approaches can do the same thing like this (honestly I like AppImage), I think your approach is cool.

    Hi Alex, thanks for your hard work on GNOME and Flatpak!

  2. Hi Ade Malsasa Akbar, yes, I have run AppImages on Windows. You need to install an X server, and need to run ./Your.AppImage –appimage-extract, then ./squashfs-root/AppRun. This is because Windows does not support FUSE (yet).

Comments are closed.

Leave a Reply

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