Bug 1213366 - Steam sync not working in Lutris on Leap 15.5 (and likely also 15.4)
Summary: Steam sync not working in Lutris on Leap 15.5 (and likely also 15.4)
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Vetter
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-16 15:59 UTC by Matthias Bach
Modified: 2023-08-06 19:06 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Bach 2023-07-16 15:59:23 UTC
Syncing the Steam library does not work in Lutris on Leap 15.5. I get the following error:

2023-07-16 17:47:05,984: Error while completing task <bound method BaseService.reload of <steam.SteamService object at 0x7f7b64cd87e0 (lutris+services+steam+SteamService at 0x557eb4432500)>>: <class 'KeyError'> 'contentstatsid'
  File "/usr/lib/python3.6/site-packages/lutris/util/jobs.py", line 34, in target
    result = self.function(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/lutris/services/base.py", line 85, in reload
    self.add_installed_games()
  File "/usr/lib/python3.6/site-packages/lutris/services/steam.py", line 159, in add_installed_games
    for steamapps_path in self.steamapps_paths:
  File "/usr/lib/python3.6/site-packages/lutris/services/steam.py", line 154, in steamapps_paths
    return get_steamapps_paths()
  File "/usr/lib/python3.6/site-packages/lutris/util/steam/config.py", line 170, in get_steamapps_paths
    return steam.steam().get_steamapps_dirs()
  File "/usr/lib/python3.6/site-packages/lutris/runners/steam.py", line 243, in get_steamapps_dirs
    library_config = self.get_library_config()
  File "/usr/lib/python3.6/site-packages/lutris/runners/steam.py", line 149, in get_library_config
    return read_library_folders(self.steam_data_dir)
  File "/usr/lib/python3.6/site-packages/lutris/util/steam/config.py", line 161, in read_library_folders
    library["libraryfolders"].pop("contentstatsid")

Well, most users will only get a popup that says "contentstatsid" and notice the sync not working. But this backtrace is shown on the terminal when starting Lutris from there.

The issue has been tracked upstream as https://github.com/lutris/lutris/issues/4175 and is fixed in 0.5.10. But Leap still ships 0.5.9.

The specific commit fixing it seems to be https://github.com/lutris/lutris/commit/072e72a4aefd91101b79dd05d8ce9f100a4b6b0c.

If I manually apply the fix from the commit on my system, the issue is resolved. We might want to consider applying the patch during packaging or just upgrading the Leap version.
Comment 1 Ondřej Súkup 2023-08-02 13:13:23 UTC
not mine package
Comment 2 Michael Vetter 2023-08-03 09:20:39 UTC
> We might want to consider applying the patch during packaging or just upgrading the Leap version.

Upgrading is not possible since the new Lutris needs python 3.7 and we have 3.6 in those Leap versions AFAIK.

openSUSE_Backports_SLE-15-SP4_Update SR#1102140
openSUSE_Backports_SLE-15-SP5_Update SR#1102141
Comment 3 OBSbugzilla Bot 2023-08-03 09:55:03 UTC
This is an autogenerated message for OBS integration:
This bug (1213366) was mentioned in
https://build.opensuse.org/request/show/1102140 Backports:SLE-15-SP4 / lutris
https://build.opensuse.org/request/show/1102141 Backports:SLE-15-SP5 / lutris
Comment 4 Michael Vetter 2023-08-04 06:30:55 UTC
SRs accepted.
Comment 5 Marcus Meissner 2023-08-06 19:05:38 UTC
openSUSE-RU-2023:0212-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1213366
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    lutris-0.5.9.1-bp155.3.3.1
Comment 6 Marcus Meissner 2023-08-06 19:06:08 UTC
openSUSE-RU-2023:0211-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1213366
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP4 (src):    lutris-0.5.9.1-bp154.2.3.1