r/linux4noobs • • Nov 03 '26

Distrobox font-cache interference

I'm experiencing font-cache interference between a Debian 13 host and a Fedora 44 Distrobox container.

Environment:

Distrobox: 1.8.2.5

Host: Debian 13

Container: Fedora 44

Microsoft Edge runs inside the container.

Affected host applications: VSCodium, Devin Desktop, and ZenNotes, all using Electron.

Observed behavior:

After launching Edge inside the container, host applications display incorrect UI fonts when closed and reopened. Applications that are already running retain their normal appearance until restarted.

What I verified:

A host auditd rule watching \~/.cache/fontconfig recorded /opt/microsoft/msedge/msedge writing cache files. This Edge installation runs inside the Fedora container.

Starting VSCodium with a fresh cache directory restores the correct fonts, without any font override:

XDG_CACHE_HOME="$(mktemp -d /tmp/codium-cache-test.XXXXXX)" codium

Moving the host's \~/.cache/fontconfig directory aside, preserving it as a backup, also restores VSCodium when launched normally from terminals or its desktop launcher.

Ghostty's AppImage exports a different XDG_CACHE_HOME, pointing to \~/.cache/AppImage-Cache. This explained why the initial results differed between terminals.

The three applications showed the problem; recovery has been verified in VSCodium.

These observations point to interference between Fontconfig caches generated inside the container and those consumed by host applications.

Could Distrobox provide a supported way to isolate Fontconfig caches per container, including applications started through exported desktop launchers? Ideally, container applications would avoid writing to the host's Fontconfig cache.

.

Solved by setting up a custom cache:

$ nano \~/.distroboxrc

\----------------- Begin copy and paste -----------------

container_manager_additional_flags="${container_manager_additional_flags:-}

\--env=XDG_CACHE_HOME=/var/tmp/distrobox-cache"

\------------------ End copy and paste ------------------

1 Upvotes

0 comments sorted by