I installed emacs using flatpak install flathub org.gnu.emacs
. But when I try to run it, I get error. I am using Ubuntu via wsl2. Ubuntu 20.04.6 LTS.
$ flatpak list --app
Name Application ID Version Branch Installation
Free Software Foundation org.gnu.emacs 29.4 stable user
$ flatpak run org.gnu.emacs
bwrap: Can't mount tmpfs on /newroot/tmp/.X11-unix: No such file or directory
How can I fix this?
If you want to run GUI apps with x11 in WSL, first install necessary dependencies with
Source: https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
Sandboxed technologies like flatpak do not work well with wsl. Please use APT packages instead.