Failed to load module "xapp-gtk3-module" cause and resolution?

Hello folks!

Zorin Linux 18.1 Core here. Kernel 7.0.0-34-generic #34~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 4 15:38:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux.

Shotcut version 26.8.1 installed via Flatpak.

I noticed that if you install new fonts, Shotcut won’t be very happy of that and refuse to start with this error “Failed to load module “xapp-gtk3-module””.

I solved erasing and rebuilding the entire font cache. In my case with these instructions:

rm -rf ~/.cache/fontconfig ~/.var/app/org.shotcut.Shotcut/cache/fontconfig
sudo rm -rf /var/cache/fontconfig/*
sudo fc-cache -rfv

and restarting with

flatpak run org.shotcut.Shotcut

Hope all above might be useful for those who encounter this strange error message at startup.

Ciao ciao :waving_hand:t2:

Wait…

It’s not Shotcut fault.

It seems that a font package (the M$ one) had some self referenced loops so I noticed that others software had troubles starting…

so I found every circular loop

find /usr/share/fonts -type l ! -exec test -e {} ; -print
find -L /usr/share/fonts -type l 2>&1 | grep -i loop

Checked all font package integrity

for pkg in $(dpkg -l | grep -i fonts | awk '{print $2}'); do echo "=== $pkg ===" dpkg -V $pkg done

Reinstalled all problematic fonts

sudo apt install --reinstall ttf-mscorefonts-installer fonts-liberation

Hope it helps!

Ciaooo