Cannot find freetype using the flatpak on steam deck

Hello everyone,

I’m very new to Lutris so I may have missed an obvious step, but here is my issue in a nutshell:

  • When trying to run a Wine application that requires freetype fonts, these are not found, and as a result not displayed, rendering the affected programs unusable.
  • I’m using the flatpak version on a steam deck. I believe I installed the dependee flatpaks as well, but I’m unsure of the versions used by lutris.

Here is the output of flatpak list, as I think it might be relevant to my issue:

Name                                       Application ID                               Version     Branch         Origin           Installation
Barrier                                    com.github.debauchee.barrier                 2.3.4       stable         flathub          system
GameHub                                    com.github.tkashkin.gamehub                  0.16.3      master         gamehub-origin   system
ProtonUp-Qt                                net.davidotek.pupgui2                        2.6.4       stable         flathub          system
Lutris                                     net.lutris.Lutris                            0.5.10.1    beta           flathub-beta     system
Freedesktop Platform                       org.freedesktop.Platform                     21.08.14    21.08          flathub          system
i386                                       org.freedesktop.Platform.Compat.i386                     21.08          flathub          system
Mesa                                       org.freedesktop.Platform.GL.default          21.3.8      21.08          flathub          system
default                                    org.freedesktop.Platform.GL32.default                    21.08          flathub          system
FFmpeg extension                           org.freedesktop.Platform.ffmpeg                          1.6            flathub          system
ffmpeg-full                                org.freedesktop.Platform.ffmpeg-full                     21.08          flathub          system
i386                                       org.freedesktop.Platform.ffmpeg_full.i386                21.08          flathub          system
openh264                                   org.freedesktop.Platform.openh264            2.1.0       2.0            flathub          system
GNOME Application Platform version 3.28    org.gnome.Platform                                       3.28           flathub          system
GNOME Application Platform version 42      org.gnome.Platform                                       42             flathub          system
i386                                       org.gnome.Platform.Compat.i386                           42             flathub          system
i386                                       org.gnome.Platform.Compat.i386                           42beta         flathub-beta     system
Breeze GTK theme                           org.gtk.Gtk3theme.Breeze                                 3.22           flathub          system
Adwaita theme                              org.kde.KStyle.Adwaita                                   5.15-21.08     flathub          system
KDE Application Platform                   org.kde.Platform                                         5.15-21.08     flathub          system
KDE Application Platform                   org.kde.Platform                                         6.2            flathub          system
Wine                                       org.winehq.Wine                              7.0         stable-21.08   flathub          system
DXVK                                       org.winehq.Wine.DLLs.dxvk                    1.10.1      stable-21.08   flathub          system
Gecko                                      org.winehq.Wine.gecko                                    stable-21.08   flathub          system
Mono                                       org.winehq.Wine.mono                                     stable-21.08   flathub          system

Here is the output of /usr/bin/flatpak run --branch=beta --arch=x86_64 --command=lutris --file-forwarding net.lutris.Lutris -d when reproducing the issue (the program I’m trying to install here is Trails to Azure, but I encountered the same issue with the GoG script for Trails in the Sky):

Gtk-Message: 13:36:24.669: Failed to load module "canberra-gtk-module"
INFO     2022-06-10 13:36:25,534 [startup.init_lutris:173]:Starting Lutris 0.5.10.1
WARNING  2022-06-10 13:36:25,577 [libretro.get_libretro_cores:24]:No folder at /home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/retroarch/
DEBUG    2022-06-10 13:36:25,588 [xrandr._get_vidmodes:15]:Retrieving video modes from XrandR
INFO     2022-06-10 13:36:25,639 [startup.check_driver:65]:Running AMD Mesa driver 21.3.8 on AMD VANGOGH (DRM 3.45.0, 5.13.0-valve15-1-neptune-02197-gf6ec7ad3762a, LLVM 12.0.1) (0x163f)
INFO     2022-06-10 13:36:25,639 [startup.check_driver:77]:GPU: 1002:163F 1002:0123 (amdgpu drivers)
WARNING: radv is not a conformant Vulkan implementation, testing use only.
INFO     2022-06-10 13:36:25,748 [startup.update_runtime:213]:Startup complete

** (lutris:2): WARNING **: 13:36:25.755: AT-SPI: Could not obtain desktop path or name

DEBUG    2022-06-10 13:36:25,970 [lutriswindow.update_store:437]:Showing 1 games

** (lutris:2): WARNING **: 13:36:26.065: atk-bridge: get_device_events_reply: unknown signature

** (lutris:2): WARNING **: 13:36:26.070: atk-bridge: get_device_events_reply: unknown signature

** (lutris:2): WARNING **: 13:36:26.077: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (lutris:2): WARNING **: 13:36:26.077: AT-SPI: Could not obtain desktop path or name


** (lutris:2): WARNING **: 13:36:26.131: AT-SPI: Could not obtain desktop path or name


** (lutris:2): WARNING **: 13:36:26.131: AT-SPI: Could not obtain desktop path or name

DEBUG    2022-06-10 13:36:29,024 [application.show_window:332]:Showing window AddGamesWindow{}
DEBUG    2022-06-10 13:36:32,991 [application.show_window:332]:Showing window InstallerWindow1b4db7eb-4057-5ddf-91e0-36dec72071f5
DEBUG    2022-06-10 13:36:32,992 [application.on_app_window_destroyed:350]:Removed window AddGamesWindow{}
DEBUG    2022-06-10 13:36:37,477 [application.on_app_window_destroyed:350]:Removed window InstallerWindow1b4db7eb-4057-5ddf-91e0-36dec72071f5
DEBUG    2022-06-10 13:36:39,051 [application.show_window:332]:Showing window AddGamesWindow{}
DEBUG    2022-06-10 13:36:46,392 [application.show_window:332]:Showing window InstallerWindowtrails-to-azure
DEBUG    2022-06-10 13:36:46,393 [application.on_app_window_destroyed:350]:Removed window AddGamesWindow{}
DEBUG    2022-06-10 13:36:48,064 [xrandr._get_vidmodes:15]:Retrieving video modes from XrandR
INFO     2022-06-10 13:37:09,053 [runner.get_runner_version:324]:Getting runner information for wine
DEBUG    2022-06-10 13:37:09,054 [http.get:83]:GET https://lutris.net/api/runners/wine
DEBUG    2022-06-10 13:37:09,339 [interpreter.get_runners_to_install:223]:Default wine version is lutris-fshack-7.2
DEBUG    2022-06-10 13:37:09,348 [interpreter.get_extras:159]:Checking if service provide extra files
DEBUG    2022-06-10 13:37:09,349 [installer.prepare_game_files:146]:No service to retrieve files from
INFO     2022-06-10 13:37:09,362 [files_box.check_files_ready:72]:Waiting for user to provide files
DEBUG    2022-06-10 13:37:09,369 [interpreter.create_game_folder:181]:Creating destination path /home/deck/Games/trails-to-azure
DEBUG    2022-06-10 13:37:26,495 [files_box.on_file_available:93]:setupfile is available
INFO     2022-06-10 13:37:26,495 [files_box.on_file_available:99]:All files available
INFO     2022-06-10 13:37:26,495 [installerwindow.on_files_available:463]:All files are available, continuing install
DEBUG    2022-06-10 13:37:26,498 [interpreter._iter_commands:317]:Installer command: {'task': {'name': 'wineexec', 'executable': 'setupfile'}}
DEBUG    2022-06-10 13:37:26,522 [wine.detect_prefix_arch:81]:Prefix not found: /home/deck/Games/trails-to-azure
INFO     2022-06-10 13:37:26,522 [wine.create_prefix:96]:Creating a win64 prefix in /home/deck/Games/trails-to-azure
DEBUG    2022-06-10 13:37:26,523 [system.execute:56]:Executing /home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wineboot
DEBUG    2022-06-10 13:37:26,524 [system.execute:62]:WINEARCH=win64 WINEPREFIX=/home/deck/Games/trails-to-azure WINEDLLOVERRIDES=winemenubuilder= WINE_MONO_CACHE_DIR=/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/mono WINE_GECKO_CACHE_DIR=/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/gecko
INFO     2022-06-10 13:37:42,591 [wine.create_prefix:150]:win64 Prefix created in /home/deck/Games/trails-to-azure
DEBUG    2022-06-10 13:37:42,718 [wine.use_lutris_runtime:115]:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine is provided by Lutris, using runtime
DEBUG    2022-06-10 13:37:44,127 [command.start:141]:__GL_SHADER_DISK_CACHE="1"
DEBUG    2022-06-10 13:37:44,127 [command.start:141]:__GL_SHADER_DISK_CACHE_PATH="/home/deck/.var/app/net.lutris.Lutris/cache/lutris/shaders/wine"
DEBUG    2022-06-10 13:37:44,127 [command.start:141]:VK_ICD_FILENAMES="/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json"
DEBUG    2022-06-10 13:37:44,127 [command.start:141]:LD_LIBRARY_PATH="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/Ubuntu-18.04-i686:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/i386/lib:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/i386/usr/lib:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/Ubuntu-18.04-x86_64:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/amd64/lib:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/steam/amd64/usr/lib"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:WINEDEBUG="-all"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:DXVK_LOG_LEVEL="none"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:WINEARCH="win64"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:WINE="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:WINE_MONO_CACHE_DIR="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/mono"
DEBUG    2022-06-10 13:37:44,128 [command.start:141]:WINE_GECKO_CACHE_DIR="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/gecko"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:GST_PLUGIN_SYSTEM_PATH_1_0="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/lib64/gstreamer-1.0/:/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/lib/gstreamer-1.0/"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:WINEPREFIX="/home/deck/Games/trails-to-azure"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:WINEESYNC="1"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:WINEFSYNC="1"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:WINE_FULLSCREEN_FSR="1"
DEBUG    2022-06-10 13:37:44,129 [command.start:141]:PROTON_BATTLEYE_RUNTIME="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/battleye_runtime"
DEBUG    2022-06-10 13:37:44,130 [command.start:141]:PROTON_EAC_RUNTIME="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runtime/eac_runtime"
DEBUG    2022-06-10 13:37:44,130 [command.start:141]:WINEDLLOVERRIDES="winemenubuilder="
DEBUG    2022-06-10 13:37:44,130 [command.start:141]:PYTHONPATH="/app/lib/lutris:/app/bin:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/lib/python3.9/site-packages:/app/lib/python3.9/site-packages"
DEBUG    2022-06-10 13:37:44,130 [command.start:141]:LUTRIS_GAME_UUID="fe92abc2-c52e-4bdf-922a-7fe75c5a2465"
lutris-wrapper: /home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine
Started initial process 173 from /home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine /home/deck/azure_launcher/AzureLauncher32.exe
Start monitoring process.
fsync: up and running.
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
WARNING: radv is not a conformant Vulkan implementation, testing use only.
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
INFO     2022-06-10 13:37:52,544 [interpreter.revert:374]:Cancelling installation of Trails to Azure
DEBUG    2022-06-10 13:37:52,547 [wine.winekill:168]:Killing all wine processes: ['/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wineserver', '-k']
DEBUG    2022-06-10 13:37:52,548 [wine.winekill:169]:   Wine prefix: /home/deck/Games/trails-to-azure
DEBUG    2022-06-10 13:37:52,548 [wine.winekill:170]:   Wine arch: win64
DEBUG    2022-06-10 13:37:52,857 [wine.winekill:176]:Waiting for wine processes to terminate
DEBUG    2022-06-10 13:37:52,858 [wine.winekill:192]:Done waiting.
DEBUG    2022-06-10 13:37:52,858 [system.remove_folder:229]:Removing folder /home/deck/Games/trails-to-azure
DEBUG    2022-06-10 13:37:53,258 [system.remove_folder:229]:Removing folder /home/deck/.var/app/net.lutris.Lutris/cache/lutris/installer/trails-to-azure
DEBUG    2022-06-10 13:37:53,259 [application.on_app_window_destroyed:350]:Removed window InstallerWindowtrails-to-azure
DEBUG    2022-06-10 13:37:53,262 [command.on_stop:195]:Process 167 has terminated with code 0
DEBUG    2022-06-10 13:37:53,262 [commands._monitor_task:449]:Return code: 0
INFO     2022-06-10 13:37:55,994 [application.do_shutdown:885]:Shutting down Lutris

I would also share the file created by /usr/bin/flatpak run --branch=beta --arch=x86_64 --command=lutris --file-forwarding net.lutris.Lutris --submit-issue, but unfortunately it would result in this post having too many characters. Can provide on a future post if it is needed.

Thanks for any help!