Lutris 0.5.13 does not launch on EndeavourOS [SOLVED]

I’m using EndeavourOS and Lutris won’t start. However after starting the program it seems to appear in plasma system monitor.

Also what I’ve noticed is that when I try to install games from the Lutris website, it opens the installation dialog box but the actual program window does not appear.

lutris -d output: INFO 2023-10-14 18:38:20,607 [startup.init_lutris:209]:Starting Lutris 0.5.1 -
lutris --submit-issue output: { "comment": "Lutris does not launch", "system": { "gpus": [ { -

Any help is greatly appreciated.

UPDATE: I have found a fix for the problem. go to ‘~/.cache/lutris/’ open the ‘updates.json’ file and put ‘{}’ in it (without quotes).