How to run an AppImage on WSL

Posted by Bruce Liu on February 25, 2020 , updated on March 19, 2021

🏷️ Tags: WSL , linux , appimage , Xming , VcXsrv

Here was my error:
fuse: device not found, try 'modprobe fuse' first
Cannot mount AppImage, please check your FUSE setup.

I solved it as follows:

Step1: install Linux GUI Apps on Windows.

Step2: install GTK graphical user interface library (libgtk2.0-0 or libgtk-3-0) in wsl

sudo apt-get install libgtk2.0-0

sudo apt-get install libgtk-3-0

libgtk2.0-0 is an old version, and libgtk-3-0 is the new version. While both works in the new release of ubuntu. More about GTK GUI library.

Step3: set the default display in wsl.

export DISPLAY=:0

Default display number is 0. You can change it in Xlaunch.

Of course, you can add it to your .bashrc or .zshrc file. Add followings to it.

export DISPLAY=":0"

Step4: navigate to your AppImage folder. Dinamica is my case.

cd /mnt/d/dinamicaEGO/v5

Step5: set access mode of AppImage file

chmod a+x Dinamica.AppImage

a – all users

x – permission to execute the file

More about chmod.

Step6: extract AppImage.

./Dinamica.AppImage --appimage-extract

Due to windows not support FUSE, AppImage have to be extracted and it will generate a folder named ‘squashfs-root’.

Step7: Run it


Although it works finally, I don’t think it is the way.


Share on:

« PREVIOUS: Set up and serve Jekyll
NEXT: Hydrological Model lists »