Lutris Source Logins Not Working in ZorinOS 18+

I discovered, to my dismay, that after I changed my GOG password, I needed to log in once more for that source in Lutris. When I did this, I discovered that the login popup window was blank. Nothing seemed to fix it.

Eventually, with a lot of googling and some AI help, I was able to resolve the problem. The issue is tied back to this notorious webkit font issue in ZorinOS 18.

The Fontconfig fix that resolved the WebKitGTK login hang on Zorin OS 18 by excluding the /usr/share/fonts/woff/opendyslexic/ .woff font files:

1.Write the Fontconfig Exclusion Rule:

Create ~/.config/fontconfig/conf.d/99-disable-woff.conf to reject fonts under /usr/share/fonts/woff/opendyslexic/:

Bash

mkdir -p ~/.config/fontconfig/conf.d && cat << 'EOF' > ~/.config/fontconfig/conf.d/99-disable-woff.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <selectfont>
    <rejectfont>
      <glob>/usr/share/fonts/woff/opendyslexic/*</glob>
    </rejectfont>
  </selectfont>
</fontconfig>
EOF

Verification: Run cat ~/.config/fontconfig/conf.d/99-disable-woff.conf and confirm the XML file contains <glob>/usr/share/fonts/woff/opendyslexic/*</glob>.

2.Rebuild the Font Cache and Verify:

Refresh Fontconfig's cache and confirm no .woff or .woff2 files remain in its index:

Bash

fc-cache -f && fc-list -f "%{file}\n" | grep -iE "\.woff2?$"

Verification: The command completes with no .woff or .woff2 file paths printed.

After this, you should be able to get Lutris logins working again.

2 Likes

What concerns me is that from an accessibility point of view.

I did a search about compatibility of the font with WebkitGTK 4.1 using Brave search engine via Mojeek and Brave's A.I.

My search criteria:

Will opendyslexic font ever work with webkitgtk 4.1?

"Based on my research, there is no known fundamental incompatibility between OpenDyslexic and WebKitGTK 4.1. OpenDyslexic is a standard OTF/WOFF2 font that integrates through fontconfig, which is how WebKitGTK 4.1 discovers system fonts. If it's not rendering for you, the likely culprits are:

  • Fontconfig cache issues — run fc-cache -fv and verify with fc-list | grep -i opendyslexic .

  • Font-weight offset — WebKitGTK adds ~100 to font-weight on Linux, making text render bolder than expected. Compensate by requesting a lighter weight.

  • Font scanning hangs — with large font collections, WebKitGTK can spin at 100% CPU during font enumeration before the first page commit. A restricted fontconfig can work around this.

  • Sandboxed environments — if the app uses bubblewrap (e.g. Flatpak), user-installed fonts in ~/.local/share/fonts may not be visible inside the sandbox.

There's no open WebKit bug specifically about OpenDyslexic failing to load. If you're seeing a specific symptom (blank window, wrong font, missing glyphs), that context would help narrow it down further."

I then looked at the Flatpak sandbox option:

How to install OpenDyslexic in Flatpak sandbox?

:magnifying_glass_tilted_left: Researched OpenDyslexic Flatpak installation

The good news is that Flatpak already exposes ~/.local/share/fonts to the sandbox at /run/host/user-fonts by default (since Flatpak 1.8.0), so no extra permissions are needed in most cases.

Steps:

  1. Install the font to the user font directory:
mkdir -p ~/.local/share/fonts
# Copy the .ttf/.otf files there, or use your distro's package manager:
#   sudo apt install fonts-opendyslexic   (Ubuntu/Debian)
#   sudo dnf install opendyslexic-fonts   (Fedora)

System-wide installs to /usr/share/fonts also work — Flatpak mounts those at /run/host/fonts .

  1. Refresh the fontconfig cache on the host:
fc-cache -fv
  1. Restart the Flatpak app.

If it still doesn't appear (e.g., you have custom fontconfig rules, or an older Flatpak):

# Grant read access to your user font dir (usually unnecessary on modern Flatpak):
flatpak override --user --filesystem=~/.local/share/fonts:ro

# If you rely on custom fontconfig config:
flatpak override --user --filesystem=xdg-config/fontconfig:ro

You can verify the font is visible inside the sandbox with:

flatpak run --command=fc-list <app-id> | grep -i opendyslexic

Common gotcha: Flatpak does not expose host fontconfig config files by default. If you have a custom ~/.config/fontconfig/fonts.conf with aliases or substitutions, you'll need the xdg-config/fontconfig:ro override above for it to apply inside the sandbox."

So I am looking at it from a different angle. ZorrinOS 17 was the first GNU/Linux distro (TTBOMK) to include two open source accessible fonts, ComicRelief, an alternative to the proprietary MSComicSans, and Opendyslexic.

@AZorin and @zorink does the fact that this major issue, specifically related to WebkitGtk4.1 and Opendyslexic font effectively prevent Dyslexic users from being able to use ZorinOS?

I am also wondering if this issue might have been why other distributions remained on WebkitGTK4.0.

So looking at the initial response of the search, font-config appears to be the culprit - so what is this a part of? The Linux kernel? (Bearing in mind Ubuntu uses a modified kernel).

2 Likes

Maybe this would be worth a Try, too:

2 Likes

Whilst the solution is proven, what caused it in the first-place? Has fontconfig never been updated?

Well, turned to Brave A.I. - it is Chrome browser-based browsers introducting incompatible fonts and Webkit2GTK 4.1 transition added to the mix:

" The problems stem from a combination of Chromium-based browser updates (specifically Google Chrome 154.0.8037.57 ) and WebKitGTK migration issues that corrupt or invalidate the shared fontconfig cache .

  • Cache Corruption : Chrome 154 and other Chromium-based apps (like Brave ) write a newer, incompatible fontconfig cache format (cache-12) to the shared user cache directory. Applications statically linking older versions of fontconfig or using WebKitGTK cannot parse this new format, leading to crashes in KDE , GTK , and Flatpak applications.

  • WebKitGTK API Migration : Canonical and other distributions migrated from webkit2gtk-4.0 to webkit2gtk-4.1 . This migration introduced compatibility glitches, particularly when combined with the corrupted font cache, causing apps like Stellarium , Vish , and IntelliJ to freeze or fail when rendering fonts.

  • Race Conditions : On some systems, a race condition occurs during login where plasmashell reads the font cache while another process (like Chrome) regenerates it, causing a segfault in fontconfig initialization.

The primary fix involves deleting the corrupted font cache files in ~/.cache/fontconfig/ and reinstalling fontconfig and libfontconfig1 to regenerate compatible caches.

AI-generated answer. Please verify critical facts."

1 Like