Linux: Starting FGU with Wayland Instead of x11 Compositor

Linux: Starting FGU with Wayland Instead of x11 Compositor

Problem

Fantasy Grounds VTT crashes upon launch when trying to start under the Wayland protocol instead of x11.

Solution

Launching From Terminal

You can manually force Fantasy Grounds VTT to run explicitly in x11 mode when starting up.

  1. Open Terminal and paste in the following line of code, then press Enter:
    GDK_BACKEND=x11 ./.smiteworks/fantasygrounds/FantasyGrounds.x86_64

  2. Fantasy Grounds VTT should start as it normally would in an x11 environment.

image-20250909-222210.png

Launching From Desktop Shortcut

If you are so inclined, you can also replace the normal desktop shortcut launch command with the code above to have the shortcut launch it instead. You can use any basic text editor such as gedit, nano, or vim (used in the example below).

First, open the .desktop file via the terminal or in your favorite text editor. It should be in its default location. From Terminal, it might look like this:

vim .local/share/applications/FantasyGrounds.desktop

Once the file is open, your can change the Exec= line to the following:

Exec=env GDK_BACKEND=x11 $HOME/.smiteworks/fantasygrounds/FantasyGrounds.x86_64

Save and exit the editor. Fantasy Grounds should now launch in the X11 environment.

Due to the myriad desktop environments available for Linux/Ubuntu, specific instructions are beyond the scope of this article.