Copy and pasting from r/Lutris but hadn’t been getting any help. TL;DR Lutris provides a botched .yml launch file when a game is properly identified and will continuously wipe the exe and prefix paths in the configuration menus. This seems to be a Lutris issue and not something wrong with my install as it’s been occurring on three different machines now (one of them a fresh install).
r/Lutris post:
I’ve been getting this error on both my steam deck and main PC (Linux Mint) where if I try and change some settings in a game’s configuration I can no longer run it and get this error (using Civ 3 as an example):
[Errno 2] No such file or directory: ‘/home/user/.var/app/net.lutris.Lutris/data/lutris/games/sid-meiers-civilization-iii-complete-setup-1760864600.yml’ → '/home/user.var/app/net.lutris.Lutris/data/lutris/games/sid-meiers-civilization
Opening the configuration menu back up shows that both the exe and wine prefix directories are wiped. Re-entering the correct information just gets it deleted again.
The .yml file directory it throws up is the correct one. A workaround I’ve found is to duplicate the existing .yml file and add “setup” in the file name (e.g. sid-meiers-civilization-iii-complete-setup-1760864600) since that’s what it tries to find and the game runs. If I do anything in the configuration menu afterwards though it instantly deletes it and goes back to throwing this error.
Is there any fix for this? I noticed it happening a few months ago but thought I was using a corrupted installer before realising it was Lutris itself causing this. This happens with fresh game installs too.
Paste bin of process (Entering and exiting configuration, getting error on running game, re-entering exe/prefix with error, and applying .yml “setup” duplicate workaround):
https://paste.gloriouseggroll.tv/?e0a63ea6b718ec9c#JC3bZa3mQnyYcRpT95K1YxnBqinQB4p9Q4oTvqvuQ3Vc
Edit 16 July: it seems to only effect games that are identified by Lutris. Games that aren’t identified (ID’s don’t match) run first thing without issue. Going into the .yml files of games that are identified vs the games that aren’t shows differing content, with the former being filled with code while the latter is a lot more simplified with only two or three lines. My workaround of duplicating and renaming the .yml files creates this simplified version hence why that was working for me.